Compare commits

...

1 Commits

Author SHA1 Message Date
NarayanBavisetti
2fc0d1910f fix: validation in automation task 2023-09-05 12:29:46 +05:30

View File

@ -64,6 +64,7 @@ def archive_old_issues():
issues_to_update.append(issue)
# Bulk Update the issues and log the activity
if issues_to_update:
updated_issues = Issue.objects.bulk_update(
issues_to_update, ["archived_at"], batch_size=100
)
@ -136,6 +137,7 @@ def close_old_issues():
issues_to_update.append(issue)
# Bulk Update the issues and log the activity
if issues_to_update:
updated_issues = Issue.objects.bulk_update(issues_to_update, ["state"], batch_size=100)
[
issue_activity.delay(