From 941ed8017fcfda687bfe5a80f55f7ba77a561ecf Mon Sep 17 00:00:00 2001 From: Michael Wiencek Date: Thu, 29 Feb 2024 10:31:16 -0600 Subject: [PATCH] Fix retry delay comment, pt. II We don't double the number of hours per each attempt. It's just 1 hour * the current number of attempts: --- indexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexer.py b/indexer.py index 355e4c8..1bd67c2 100644 --- a/indexer.py +++ b/indexer.py @@ -155,7 +155,7 @@ def get_next_event(pg_conn): # Skip events that have reached `MAX_ATTEMPTS`. # In other cases, `last_updated` should be within a # specific time interval. We start by waiting 1 hour, - # and double the amount of time after each attempt. + # and wait an additional hour per each attempt. return pg_conn.execute(dedent(''' SELECT * FROM artwork_indexer.event_queue eq WHERE eq.state = 'queued'