Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73e6679

Browse files
committed
Fix worker
1 parent 4dfb110 commit 73e6679

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Console/AsyncCommand.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,18 @@ public function fire()
6969
*/
7070
protected function processJob($connectionName, $queue, $id, $delay, $maxTries)
7171
{
72-
$connection = $this->worker->getManager()->connection($connectionName);
72+
$manager = $this->worker->getManager();
73+
$connection = $manager->connection($connectionName);
7374

7475
$job = $connection->getJobFromId($queue, $id);
75-
76+
7677
// If we're able to pull a job off of the stack, we will process it and
7778
// then immediately return back out. If there is no job on the queue
7879
// we will "sleep" the worker for the specified number of seconds.
7980
if ( ! is_null($job))
8081
{
81-
return $this->process(
82-
$this->manager->getName($connectionName), $job, $maxTries, $delay
82+
return $this->worker->process(
83+
$manager->getName($connectionName), $job, $maxTries, $delay
8384
);
8485
}
8586

0 commit comments

Comments
 (0)