remove background jobs if they are failing

This commit is contained in:
Robin Appelman 2013-12-02 13:43:26 +01:00
parent 35bb6f7e3a
commit 4f4ad72460
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ abstract class Job {
if ($logger) {
$logger->error('Error while running background job: ' . $e->getMessage());
}
$jobList->remove($this, $this->argument);
}
}