From c1c3cf5ae48d5833160cbb12eed131be612eb6ab Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Thu, 23 Nov 2023 20:38:55 +0530 Subject: [PATCH] dev: remove deactivation flag if max retries exceeded --- apiserver/plane/bgtasks/webhook_task.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apiserver/plane/bgtasks/webhook_task.py b/apiserver/plane/bgtasks/webhook_task.py index 144f2f267..c9e0ddceb 100644 --- a/apiserver/plane/bgtasks/webhook_task.py +++ b/apiserver/plane/bgtasks/webhook_task.py @@ -153,10 +153,6 @@ def webhook_task(self, webhook, slug, event, event_data, action): retry_count=str(self.request.retries), ) - # Retry logic - if self.request.retries >= self.max_retries: - Webhook.objects.filter(pk=webhook.id).update(is_active=False) - return raise requests.RequestException() except Exception as e: