Browse Source

Fix atomic with block in run_deletion task

Christoph Heer 7 years ago
parent
commit
ef0f8761b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sentry/tasks/deletion.py

+ 1 - 1
src/sentry/tasks/deletion.py

@@ -66,7 +66,7 @@ def run_deletion(deletion_id):
     if not deletion.in_progress:
         actor = deletion.get_actor()
         instance = deletion.get_instance()
-        with transaction.atomc():
+        with transaction.atomic():
             deletion.update(in_progress=True)
             pending_delete.send(
                 sender=type(instance),