Browse Source
Merge pull request #37937 from nextcloud/artonge/feat/remove_non_existing_jobs
Remove job from oc_jobs when the file is not findable
pull/38045/head
Arthur Schiwon
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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; |
|
|
|
} |
|
|
|
} |
|
|
|
|