Skip to content

Commit 692902e

Browse files
committed
Add retries to the daily reports
1 parent 38da095 commit 692902e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

adserver/tasks.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,12 @@ def daily_update_publishers(day=None):
791791
)
792792

793793

794-
@app.task(time_limit=60 * 60 * 4)
794+
@app.task(
795+
time_limit=60 * 60 * 4,
796+
autoretry_for=(Exception,),
797+
retry_kwargs={"max_retries": 3},
798+
retry_backoff=True,
799+
)
795800
def daily_update_reports():
796801
"""Update today's report data rather than the previous day."""
797802
day, _ = get_day()

0 commit comments

Comments
 (0)