Skip to content

Commit

Permalink
Fix retry delay comment, pt. II
Browse files Browse the repository at this point in the history
We don't double the number of hours per each attempt. It's just 1 hour * the
current number of attempts:
  • Loading branch information
mwiencek committed Feb 29, 2024
1 parent 960da64 commit 941ed80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 941ed80

Please sign in to comment.