Skip to content

Commit 82fde9e

Browse files
committed
formatting
1 parent 1ec9648 commit 82fde9e

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/Illuminate/Queue/Console/ListenCommand.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class ListenCommand extends Command
2424
{--memory=128 : The memory limit in megabytes}
2525
{--queue= : The queue to listen on}
2626
{--sleep=3 : Number of seconds to sleep when no job is available}
27+
{--rest=0 : Number of seconds to rest between jobs}
2728
{--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}';
3030

3131
/**
3232
* The name of the console command.
@@ -114,15 +114,15 @@ protected function gatherOptions()
114114
: $this->option('delay');
115115

116116
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')
126126
);
127127
}
128128

src/Illuminate/Queue/Listener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function listen($connection, $queue, ListenerOptions $options)
8888

8989
while (true) {
9090
$this->runProcess($process, $options->memory);
91+
9192
if ($options->rest) {
9293
sleep($options->rest);
9394
}

0 commit comments

Comments
 (0)