File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ Section Order:
1111### Removed
1212-->
1313
14+ ### Changed
15+
16+ - ` DownTimeError ` Will no longer send out warning logs
17+
1418## [ 4.0.0] - 2026-05-09
1519
1620> [ !IMPORTANT]
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def retry_task_on_esi_error(task: Task):
9595 - Rate limit errors (ESIBucketLimitException)
9696 - HTTPError with status codes 502, 503, 504 (server errors)
9797 - RequestError (network issues, timeouts, etc.)
98- - DownTimeError (ESI's daily downtime)
98+ - DownTimeError (ESI's daily downtime from 11:00 to 11:15 UTC )
9999
100100 :param task: Celery Task instance
101101 :return: Context manager that retries the task on ESI errors.
@@ -105,12 +105,13 @@ def retry_task_on_esi_error(task: Task):
105105 def retry (exc : Exception , retry_after : float , issue : str ):
106106 backoff_jitter = int (random .uniform (2 , 5 ) ** task .request .retries )
107107 countdown = retry_after + backoff_jitter
108- logger .warning (
109- "ESI Error encountered: %s. Retrying after %.2f seconds. Issue: %s" ,
110- str (exc ),
111- countdown ,
112- issue ,
113- )
108+ if not isinstance (exc , DownTimeError ):
109+ logger .warning (
110+ "ESI Error encountered: %s. Retrying after %.2f seconds. Issue: %s" ,
111+ str (exc ),
112+ countdown ,
113+ issue ,
114+ )
114115 raise task .retry (countdown = countdown , exc = exc )
115116
116117 def daily_downtime ():
You can’t perform that action at this time.
0 commit comments