forked from github/plane
dev: remove deactivation flag if max retries exceeded
This commit is contained in:
parent
5314518fb2
commit
c1c3cf5ae4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user