Skip to content

Commit

Permalink
Merge pull request #37937 from nextcloud/artonge/feat/remove_non_exis…
Browse files Browse the repository at this point in the history
…ting_jobs

Remove job from oc_jobs when the file is not findable
  • Loading branch information
blizzz authored May 3, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 9ace8e5 + 8ad2f34 commit 7a7578c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/BackgroundJob/JobList.php
Original file line number Diff line number Diff line change
@@ -307,7 +307,8 @@ private function buildJob(array $row): ?IJob {
$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;
}
}

0 comments on commit 7a7578c

Please sign in to comment.