You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Commands/Monitor.php
+87-50Lines changed: 87 additions & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,14 @@ class Monitor extends ConsoleCommand
19
19
protectedfunctionconfigure()
20
20
{
21
21
$this->setName('queuedtracking:monitor');
22
-
$this->setDescription("Shows and updates the current state of the queue every 2 seconds.\n Key ,=first page, .=last page, 0-9=move to page section, arrow LEFT=prev page, RIGHT=next page, UP=next 10 pages, DOWN=prev 10 pages, q=quit");
22
+
if ($this->interactiveCapability()) {
23
+
$this->setDescription("Shows and updates the current state of the queue every 2 seconds.\n Key ,=first page, .=last page, 0-9=move to page section, arrow LEFT=prev page, RIGHT=next page, UP=next 10 pages, DOWN=prev 10 pages, q=quit");
24
+
} else {
25
+
$this->setDescription("Shows and updates the current state of the queue every 2 seconds.");
26
+
}
23
27
$this->addRequiredValueOption('iterations', null, 'If set, will limit the number of monitoring iterations done.');
24
-
$this->addRequiredValueOption('perpage', 'p', 'Number of queue worker displayed per page.', 16);
28
+
$this->addRequiredValueOption('rowperpage', 'r', 'Number of queue worker displayed per page.', 16);
29
+
$this->addRequiredValueOption('jumptopage', 'p', 'Jump to page (p).', 1);
25
30
}
26
31
27
32
/**
@@ -66,14 +71,16 @@ protected function doExecute(): int
$memory = $backend->getMemoryStats(); // I know this will only work with redis currently as it is not defined in backend interface etc. needs to be refactored once we add another backend
@@ -120,7 +127,7 @@ protected function doExecute(): int
0 commit comments