Skip to content

Commit

Permalink
Merge pull request #369 from creative-commoners/pulls/4.9/db-active
Browse files Browse the repository at this point in the history
FIX Ensure DB is active before processing
  • Loading branch information
Maxime Rainville authored Mar 25, 2022
2 parents 9a57e05 + a625846 commit 2e92ae7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Services/QueuedJobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,9 @@ public function runQueue($queue)
*/
public function processJobQueue($name)
{
if (!DB::is_active()) {
return;
}
// Start timer to measure lifetime
$this->markStarted();

Expand Down

0 comments on commit 2e92ae7

Please sign in to comment.