Skip to content

Commit

Permalink
fix(QueuedJobService): When a job hits the "Job releasing memory and …
Browse files Browse the repository at this point in the history
…waiting" case and completed successfully, it would not run the 'afterComplete' logic.
  • Loading branch information
Jake Bentvelzen committed Jul 5, 2017
1 parent 7b53607 commit 69b27e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/QueuedJobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ public function runJob($jobId)
$jobDescriptor->write();
}

if (!$broken) {
if ($job->jobFinished()) {
$job->afterComplete();
$jobDescriptor->cleanupJob();
}
Expand Down

0 comments on commit 69b27e9

Please sign in to comment.