From 3ad3cc77f94a399b8041357b11c2aaadf5d38081 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Tue, 25 Jul 2023 14:23:10 +0530 Subject: [PATCH] fix: handle model save error in issue activity (#1661) --- apiserver/plane/bgtasks/issue_activites_task.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apiserver/plane/bgtasks/issue_activites_task.py b/apiserver/plane/bgtasks/issue_activites_task.py index 8a485d46e..8f34daf52 100644 --- a/apiserver/plane/bgtasks/issue_activites_task.py +++ b/apiserver/plane/bgtasks/issue_activites_task.py @@ -1044,8 +1044,11 @@ def issue_activity( issue = Issue.objects.filter(pk=issue_id).first() if issue is not None: - issue.updated_at = timezone.now() - issue.save(update_fields=["updated_at"]) + try: + issue.updated_at = timezone.now() + issue.save(update_fields=["updated_at"]) + except Exception as e: + pass if subscriber: # add the user to issue subscriber