blob: 005ffe0c14b52fc514d094496ae4e0314f2a5c5b [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= gerrit show-queue
Shawn O. Pearce4016a932009-05-28 15:12:40 -07002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
David Shevitzc47f2362018-09-27 10:55:35 -07004gerrit show-queue - Display the background work queues, including replication
5and indexing.
Shawn O. Pearce4016a932009-05-28 15:12:40 -07006
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08007== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02008[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08009--
Michael Ochmanne2d76a12016-06-23 17:07:37 +020010_ssh_ -p <port> <host> _gerrit show-queue_
11_ssh_ -p <port> <host> _ps_
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080012--
Shawn O. Pearce4016a932009-05-28 15:12:40 -070013
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080014== DESCRIPTION
Shawn O. Pearce3f1a13a2009-11-20 20:15:41 -080015Presents a table of the pending activity the Gerrit daemon
16is currently performing, or will perform in the near future.
17Gerrit contains an internal scheduler, similar to cron, that it
18uses to queue and dispatch both short and long term activity.
Shawn O. Pearce4016a932009-05-28 15:12:40 -070019
David Pursehouse92463562013-06-24 10:16:28 +090020Tasks that are completed or canceled exit the queue very quickly
Shawn O. Pearce4016a932009-05-28 15:12:40 -070021once they enter this state, but it can be possible to observe tasks
22in these states.
23
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080024== ACCESS
Shawn O. Pearce7f485142011-06-16 13:49:42 -070025End-users may see a task in the queue only if they can also see
26the project the task is associated with. Tasks operating on other
27projects, or that do not have a specific project are hidden.
28
29Members of the group 'Administrators', or any group that has been
Fredrik Luthander48603002012-03-21 18:17:17 +010030granted
31link:access-control.html#capability_viewQueue[the 'View Queue' capability]
32can see all queue entries.
Shawn O. Pearce4016a932009-05-28 15:12:40 -070033
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080034== SCRIPTING
Shawn O. Pearce4016a932009-05-28 15:12:40 -070035Intended for interactive use only.
36
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080037== OPTIONS
Doug Kelly6599d772013-06-11 01:36:31 -050038--wide::
39-w::
40 Do not format the output to the terminal width (default of
41 80 columns).
42
Saša Živkoveaf64562016-07-12 17:23:19 +020043--by-queue::
44-q::
45 Group tasks by queue and print queue info.
46
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080047== DISPLAY
Shawn O. Pearce4016a932009-05-28 15:12:40 -070048
Shawn O. Pearce4016a932009-05-28 15:12:40 -070049Task::
Shawn O. Pearce3f1a13a2009-11-20 20:15:41 -080050 Unique task identifier on this server. May be passed into
51 link:cmd-kill.html[kill] to cancel or terminate the task.
Edwin Kempincdb0e002011-09-08 14:23:30 +020052 Task identifiers have a period of 2^32-1, and start from
Shawn O. Pearce3f1a13a2009-11-20 20:15:41 -080053 a random value.
54
55State::
56 If running, blank.
57+
58If the task has completed, but has not yet been reaped, 'done'.
59If the task has been killed, but has not yet halted or been removed
60from the queue, 'killed'.
61+
62If the task is ready to execute but is waiting for an idle thread
63in its associated thread pool, 'waiting'.
64+
65Otherwise the time (local to the server) that this task will begin
66execution.
67
68Command::
Shawn O. Pearce4016a932009-05-28 15:12:40 -070069 Short text description of the task that will be performed
70 at the given time.
71
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080072== EXAMPLES
Shawn O. Pearce4016a932009-05-28 15:12:40 -070073
74The following queue contains two tasks scheduled to replicate the
75`tools/gerrit.git` project to two different remote systems, `dst1`
76and `dst2`:
77
Michael Ochmannb99feab2016-07-06 14:10:22 +020078----
David Shevitzc47f2362018-09-27 10:55:35 -070079$ ssh -p 29418 review.example.com gerrit show-queue
80Task State Command
81------------------------------------------------------------------------------
827aae09b2 14:31:15.435 mirror dst1:/home/git/tools/gerrit.git
839ad09d27 14:31:25.434 mirror dst2:/var/cache/tools/gerrit.git
84------------------------------------------------------------------------------
852 tasks
Michael Ochmannb99feab2016-07-06 14:10:22 +020086----
Shawn O. Pearce4016a932009-05-28 15:12:40 -070087
Shawn O. Pearce5500e692009-05-28 15:55:01 -070088GERRIT
89------
90Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070091
92SEARCHBOX
93---------