Add timeout for backfill queue waiter to handle retries

This commit is contained in:
Tulir Asokan
2022-10-11 17:32:59 +03:00
parent 699fc9df1f
commit 8ae34223c5
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ class Backfill:
q = "UPDATE backfill_queue SET completed_at=$1 WHERE queue_id=$2"
await self.db.execute(q, datetime.now(), self.queue_id)
async def set_cooldown_timeout(self, timeout) -> None:
async def set_cooldown_timeout(self, timeout: int) -> None:
"""
Set the backfill request to cooldown for ``timeout`` seconds.
"""