diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-05-03 12:51:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 12:51:11 +0200 |
commit | 7a7578cb86ff402f8a252df50495c1fb8ace7806 (patch) | |
tree | 5eb09bc2b2a8c1ad09b6c6be44d73caa7238fcc0 | |
parent | 9ace8e561df1aa526f11ef6c2b6860502af4bc3c (diff) | |
parent | 8ad2f340453cade0bf0b37d02e5cdadf49381abb (diff) | |
download | nextcloud-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.php | 3 |
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; } } |