dev: remove deactivation flag if max retries exceeded

This commit is contained in:
pablohashescobar 2023-11-23 20:38:55 +05:30
parent 5314518fb2
commit c1c3cf5ae4

View File

@ -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: