]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove background jobs if they are failing
authorRobin Appelman <icewind@owncloud.com>
Mon, 2 Dec 2013 12:43:26 +0000 (13:43 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 6 Dec 2013 19:57:58 +0000 (20:57 +0100)
lib/private/backgroundjob/job.php

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