Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = gerrit show-queue |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 4 | gerrit show-queue - Display the background work queues, including replication |
| 5 | and indexing. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 6 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 7 | == SYNOPSIS |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 8 | [verse] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 9 | -- |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 10 | _ssh_ -p <port> <host> _gerrit show-queue_ |
| 11 | _ssh_ -p <port> <host> _ps_ |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 12 | -- |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 13 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 14 | == DESCRIPTION |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 15 | Presents a table of the pending activity the Gerrit daemon |
| 16 | is currently performing, or will perform in the near future. |
| 17 | Gerrit contains an internal scheduler, similar to cron, that it |
| 18 | uses to queue and dispatch both short and long term activity. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 19 | |
David Pursehouse | 9246356 | 2013-06-24 10:16:28 +0900 | [diff] [blame] | 20 | Tasks that are completed or canceled exit the queue very quickly |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 21 | once they enter this state, but it can be possible to observe tasks |
| 22 | in these states. |
| 23 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 24 | == ACCESS |
Shawn O. Pearce | 7f48514 | 2011-06-16 13:49:42 -0700 | [diff] [blame] | 25 | End-users may see a task in the queue only if they can also see |
| 26 | the project the task is associated with. Tasks operating on other |
| 27 | projects, or that do not have a specific project are hidden. |
| 28 | |
| 29 | Members of the group 'Administrators', or any group that has been |
Fredrik Luthander | 4860300 | 2012-03-21 18:17:17 +0100 | [diff] [blame] | 30 | granted |
| 31 | link:access-control.html#capability_viewQueue[the 'View Queue' capability] |
| 32 | can see all queue entries. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 33 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 34 | == SCRIPTING |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 35 | Intended for interactive use only. |
| 36 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 37 | == OPTIONS |
Doug Kelly | 6599d77 | 2013-06-11 01:36:31 -0500 | [diff] [blame] | 38 | --wide:: |
| 39 | -w:: |
| 40 | Do not format the output to the terminal width (default of |
| 41 | 80 columns). |
| 42 | |
Saša Živkov | eaf6456 | 2016-07-12 17:23:19 +0200 | [diff] [blame] | 43 | --by-queue:: |
| 44 | -q:: |
| 45 | Group tasks by queue and print queue info. |
| 46 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 47 | == DISPLAY |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 48 | |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 49 | Task:: |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 50 | Unique task identifier on this server. May be passed into |
| 51 | link:cmd-kill.html[kill] to cancel or terminate the task. |
Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 52 | Task identifiers have a period of 2^32-1, and start from |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 53 | a random value. |
| 54 | |
| 55 | State:: |
| 56 | If running, blank. |
| 57 | + |
| 58 | If the task has completed, but has not yet been reaped, 'done'. |
| 59 | If the task has been killed, but has not yet halted or been removed |
| 60 | from the queue, 'killed'. |
| 61 | + |
| 62 | If the task is ready to execute but is waiting for an idle thread |
| 63 | in its associated thread pool, 'waiting'. |
| 64 | + |
| 65 | Otherwise the time (local to the server) that this task will begin |
| 66 | execution. |
| 67 | |
| 68 | Command:: |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 69 | Short text description of the task that will be performed |
| 70 | at the given time. |
| 71 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 72 | == EXAMPLES |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 73 | |
| 74 | The following queue contains two tasks scheduled to replicate the |
| 75 | `tools/gerrit.git` project to two different remote systems, `dst1` |
| 76 | and `dst2`: |
| 77 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 78 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 79 | $ ssh -p 29418 review.example.com gerrit show-queue |
| 80 | Task State Command |
| 81 | ------------------------------------------------------------------------------ |
| 82 | 7aae09b2 14:31:15.435 mirror dst1:/home/git/tools/gerrit.git |
| 83 | 9ad09d27 14:31:25.434 mirror dst2:/var/cache/tools/gerrit.git |
| 84 | ------------------------------------------------------------------------------ |
| 85 | 2 tasks |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 86 | ---- |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 87 | |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 88 | GERRIT |
| 89 | ------ |
| 90 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 91 | |
| 92 | SEARCHBOX |
| 93 | --------- |