summaryrefslogtreecommitdiffstats
path: root/lib/private/backgroundjob
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-12-02 13:43:26 +0100
committerRobin Appelman <icewind@owncloud.com>2013-12-02 13:43:26 +0100
commit4f4ad72460f8ef299cd1235b5774c5f121cca430 (patch)
treec40c2f51456085d176868bfe7e6fbbbb82571ce7 /lib/private/backgroundjob
parent35bb6f7e3a4df325e594e1d206520e89014f2a42 (diff)
downloadnextcloud-server-4f4ad72460f8ef299cd1235b5774c5f121cca430.tar.gz
nextcloud-server-4f4ad72460f8ef299cd1235b5774c5f121cca430.zip
remove background jobs if they are failing
Diffstat (limited to 'lib/private/backgroundjob')
-rw-r--r--lib/private/backgroundjob/job.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/backgroundjob/job.php b/lib/private/backgroundjob/job.php
index 25616597504..92bd0f8fdbd 100644
--- a/lib/private/backgroundjob/job.php
+++ b/lib/private/backgroundjob/job.php
@@ -36,6 +36,7 @@ abstract class Job {
if ($logger) {
$logger->error('Error while running background job: ' . $e->getMessage());
}
+ $jobList->remove($this, $this->argument);
}
}