Browse Source

Merge "Moving task cache update into task creation transaction"

Jenkins 2 years ago
parent
commit
3d6d48a233
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      nailgun/nailgun/task/task.py

+ 2
- 1
nailgun/nailgun/task/task.py View File

@@ -909,8 +909,9 @@ class DeleteIBPImagesTask(object):
909 909
     def execute(cls, cluster, image_data):
910 910
         task = Task(name=consts.TASK_NAMES.remove_images, cluster=cluster)
911 911
         db().add(task)
912
+        message = cls.message(task, image_data)
912 913
         db().commit()
913
-        rpc.cast('naily', cls.message(task, image_data))
914
+        rpc.cast('naily', message)
914 915
 
915 916
 
916 917
 class StopDeploymentTask(object):

Loading…
Cancel
Save