Skip to content

Commit f829399

Browse files
Add --json option to horizon:work to match queue:work functionality (#1612)
* Add `--json` option to WorkCommand to enable JSON output * Update WorkCommand.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent eb2acf4 commit f829399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Console/WorkCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class WorkCommand extends BaseWorkCommand
2828
{--rest=0 : Number of seconds to rest between jobs}
2929
{--supervisor= : The name of the supervisor the worker belongs to}
3030
{--timeout=60 : The number of seconds a child process can run}
31-
{--tries=0 : Number of times to attempt a job before logging it failed}';
31+
{--tries=0 : Number of times to attempt a job before logging it failed}
32+
{--json : Output the queue worker information as JSON}';
3233

3334
/**
3435
* Indicates whether the command should be shown in the Artisan command list.

0 commit comments

Comments
 (0)