Skip to content

Commit

Permalink
Remove async bulk update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioDelConte committed Jan 7, 2025
1 parent eeb50f6 commit 7b63af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drmaatic/job/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def delete_queryset(self, request, queryset: QuerySet[Job]):
t = threading.Thread(target=delete_jobs_from_file_system, args=(queryset,), daemon=True)
t.start()
# Set the jobs to deleted
Job.objects.abulk_update(queryset, ['deleted'], 1000)
Job.objects.bulk_update(queryset, ['deleted'], 1000)

@admin.action(description="Delete and remove from database")
def delete_and_remove(self, request, queryset):
Expand Down

0 comments on commit 7b63af2

Please sign in to comment.