@@ -24,9 +24,9 @@ class ListenCommand extends Command
24
24
{--memory=128 : The memory limit in megabytes}
25
25
{--queue= : The queue to listen on}
26
26
{--sleep=3 : Number of seconds to sleep when no job is available}
27
+ {--rest=0 : Number of seconds to rest between jobs}
27
28
{--timeout=60 : The number of seconds a child process can run}
28
- {--tries=1 : Number of times to attempt a job before logging it failed}
29
- {--rest=0 : Number of seconds to rest between jobs} ' ;
29
+ {--tries=1 : Number of times to attempt a job before logging it failed} ' ;
30
30
31
31
/**
32
32
* The name of the console command.
@@ -114,15 +114,15 @@ protected function gatherOptions()
114
114
: $ this ->option ('delay ' );
115
115
116
116
return new ListenerOptions (
117
- $ this ->option ('name ' ),
118
- $ this ->option ('env ' ),
119
- $ backoff ,
120
- $ this ->option ('memory ' ),
121
- $ this ->option ('timeout ' ),
122
- $ this ->option ('sleep ' ),
123
- $ this ->option ('tries ' ),
124
- $ this ->option ('force ' ),
125
- $ this ->option ('rest ' )
117
+ name: $ this ->option ('name ' ),
118
+ environment: $ this ->option ('env ' ),
119
+ backoff: $ backoff ,
120
+ memory: $ this ->option ('memory ' ),
121
+ timeout: $ this ->option ('timeout ' ),
122
+ sleep: $ this ->option ('sleep ' ),
123
+ rest: $ this ->option ('rest ' ),
124
+ maxTries: $ this ->option ('tries ' ),
125
+ force: $ this ->option ('force ' )
126
126
);
127
127
}
128
128
0 commit comments