]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not delete background jobs, in case an exception occured
authorJoas Schilling <nickvergessen@owncloud.com>
Fri, 18 Dec 2015 13:31:27 +0000 (14:31 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Fri, 18 Dec 2015 13:31:27 +0000 (14:31 +0100)
This approach is not valid anymore. It initially was added for jobs
of non existing apps. But jobs of non-existing apps can not be created
so they will never be executed and so this call just catches other
cases which were not intended.

This reverts commit 4f4ad72460f8ef299cd1235b5774c5f121cca430.

lib/private/backgroundjob/job.php

index 88682cd09bbd783cba30ab89470e300e6589e05b..40a27491fe6aee94942e44c9c72ff497d48008af 100644 (file)
@@ -54,7 +54,6 @@ abstract class Job implements IJob {
                        if ($logger) {
                                $logger->error('Error while running background job: ' . $e->getMessage());
                        }
-                       $jobList->remove($this, $this->argument);
                }
        }