mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #32666 from nextcloud/fix/background-job-type-check
Check background job type
This commit is contained in:
commit
581bb62d9c
1 changed files with 4 additions and 0 deletions
|
|
@ -311,6 +311,10 @@ class JobList implements IJobList {
|
|||
}
|
||||
}
|
||||
|
||||
if (!($job instanceof IJob)) {
|
||||
// This most likely means an invalid job was enqueued. We can ignore it.
|
||||
return null;
|
||||
}
|
||||
$job->setId((int) $row['id']);
|
||||
$job->setLastRun((int) $row['last_run']);
|
||||
$job->setArgument(json_decode($row['argument'], true));
|
||||
|
|
|
|||
Loading…
Reference in a new issue