Skip to content

Commit

Permalink
Merge pull request #134 from SilbinaryWolf/fix-aftercomplete
Browse files Browse the repository at this point in the history
fix(QueuedJobService): Fix when a job hits the "Job releasing memory and …
  • Loading branch information
Nathan authored Jul 5, 2017
2 parents 7b53607 + 69b27e9 commit f6ae652
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 f6ae652

Please sign in to comment.