forked from CGM_Public/pretix_original
Fix missing countdown in new webhook retry logic
This commit is contained in:
@@ -454,7 +454,7 @@ def send_webhook(self, logentry_id: int, action_type: str, webhook_id: int, retr
|
|||||||
if retry_count >= len(retry_intervals):
|
if retry_count >= len(retry_intervals):
|
||||||
return 'retry-given-up'
|
return 'retry-given-up'
|
||||||
elif retry_intervals[retry_count] < retry_celery_cutoff:
|
elif retry_intervals[retry_count] < retry_celery_cutoff:
|
||||||
send_webhook.apply_async(args=(logentry_id, action_type, webhook_id, retry_count + 1))
|
send_webhook.apply_async(args=(logentry_id, action_type, webhook_id, retry_count + 1), countdown=retry_intervals[retry_count])
|
||||||
return 'retry-via-celery'
|
return 'retry-via-celery'
|
||||||
else:
|
else:
|
||||||
webhook.retries.update_or_create(
|
webhook.retries.update_or_create(
|
||||||
|
|||||||
Reference in New Issue
Block a user