diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-11-12 06:20:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 06:20:07 +0300 |
commit | 0e7530e93f0ada22024e7226badc1d94c8309f3c (patch) | |
tree | 412d841c666ebb90da3dbfdcf887f48b8f2b4028 /core/CronArchive.php | |
parent | 4039709af923620063f14adf1817015efc8da375 (diff) |
Better detect failed archiving jobs. (#16701)4.0.0-rc3
Diffstat (limited to 'core/CronArchive.php')
-rw-r--r-- | core/CronArchive.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php index 358e6bfa78..4f36b4e485 100644 --- a/core/CronArchive.php +++ b/core/CronArchive.php @@ -345,6 +345,13 @@ class CronArchive return; } + $failedJobs = $this->model->resetFailedArchivingJobs(); + if ($failedJobs) { + $this->logger->info("Found {failed} failed jobs (ts_invalidated older than 1 day), resetings status to try them again.", [ + 'failed' => $failedJobs, + ]); + } + $countOfProcesses = $this->getMaxConcurrentApiRequests(); $queueConsumer = new QueueConsumer($this->logger, $this->websiteIdArchiveList, $countOfProcesses, $pid, |