]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Increase last runner contact update
authorChocobozzz <me@florianbigard.com>
Wed, 17 May 2023 12:50:12 +0000 (14:50 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 17 May 2023 12:50:12 +0000 (14:50 +0200)
server/lib/runners/runner.ts

index 74c814ba1746a8097d0326347b0cfe1cfea9cc96..5478ab519a06a76d828781cc65e32a0fddc4bf04 100644 (file)
@@ -12,7 +12,7 @@ function updateLastRunnerContact (req: express.Request, runner: MRunner) {
   const now = new Date()
 
   // Don't update last runner contact too often
-  if (now.getTime() - runner.lastContact.getTime() < 2000) return
+  if (now.getTime() - runner.lastContact.getTime() < 30000) return
   if (updatingRunner.has(runner.id)) return
 
   updatingRunner.add(runner.id)