summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-03 12:51:11 +0200
committerGitHub <noreply@github.com>2023-05-03 12:51:11 +0200
commit7a7578cb86ff402f8a252df50495c1fb8ace7806 (patch)
tree5eb09bc2b2a8c1ad09b6c6be44d73caa7238fcc0
parent9ace8e561df1aa526f11ef6c2b6860502af4bc3c (diff)
parent8ad2f340453cade0bf0b37d02e5cdadf49381abb (diff)
downloadnextcloud-server-7a7578cb86ff402f8a252df50495c1fb8ace7806.tar.gz
nextcloud-server-7a7578cb86ff402f8a252df50495c1fb8ace7806.zip
Merge pull request #37937 from nextcloud/artonge/feat/remove_non_existing_jobs
Remove job from oc_jobs when the file is not findable
-rw-r--r--lib/private/BackgroundJob/JobList.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php
index fbeee1f56e9..3cdfee51138 100644
--- a/lib/private/BackgroundJob/JobList.php
+++ b/lib/private/BackgroundJob/JobList.php
@@ -307,7 +307,8 @@ class JobList implements IJobList {
$class = $row['class'];
$job = new $class();
} else {
- // job from disabled app or old version of an app, no need to do anything
+ // Remove job from disabled app or old version of an app
+ $this->removeById($row['id']);
return null;
}
}