ソースを参照

Merge pull request #30174 from overleaf/bg-history-backup-allow-stalled-jobs-to-be-retried

Allow stalled jobs to be retried in backup queue settings

GitOrigin-RevId: c68605aa89e9f8d4c2bc11fc14739a7d0774096d
Brian Gough 8 ヶ月 前
コミット
42d09010aa
1 ファイル変更1 行追加1 行削除
  1. 1 1
      services/history-v1/storage/scripts/backup_worker.mjs

+ 1 - 1
services/history-v1/storage/scripts/backup_worker.mjs

@@ -40,7 +40,7 @@ const backupQueue = new Queue('backup', {
   settings: {
   settings: {
     lockDuration: 15 * 60 * 1000, // 15 minutes
     lockDuration: 15 * 60 * 1000, // 15 minutes
     lockRenewTime: 60 * 1000, // 1 minute
     lockRenewTime: 60 * 1000, // 1 minute
-    maxStalledCount: 0, // mark stalled jobs as failed
+    maxStalledCount: 1, // allow stalled jobs to retried
   },
   },
 })
 })