remove background jobs if they are failing
This commit is contained in:
parent
35bb6f7e3a
commit
4f4ad72460
|
@ -36,6 +36,7 @@ abstract class Job {
|
|||
if ($logger) {
|
||||
$logger->error('Error while running background job: ' . $e->getMessage());
|
||||
}
|
||||
$jobList->remove($this, $this->argument);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue