fix: validation in automation task

This commit is contained in:
NarayanBavisetti 2023-09-05 12:29:46 +05:30
parent 900a4fcb0e
commit 2fc0d1910f

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(