Skip to content

Commit 1b76ab3

Browse files
authored
fix: return value for runQueue() (#189)
* fix: return value for the queue * add missing return type
1 parent 8ff0197 commit 1b76ab3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Task.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ protected function runUrl()
301301

302302
/**
303303
* Sends a job to the queue.
304+
*
305+
* @return bool Status of the queue push
304306
*/
305307
protected function runQueue()
306308
{
@@ -315,7 +317,7 @@ protected function runQueue()
315317
]);
316318
}
317319

318-
return service('queue')->push(...$queueAction);
320+
return service('queue')->push(...$queueAction)->getStatus();
319321
}
320322

321323
/**

0 commit comments

Comments
 (0)