We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a09d60e commit 959c79cCopy full SHA for 959c79c
1 file changed
api/models.py
@@ -429,7 +429,8 @@ def destroy(self):
429
# create subtasks to terminate all nodes in parallel
430
subtasks.extend([ layer.destroy() for layer in self.layer_set.all() ])
431
job = group(*subtasks)
432
- job.apply_async().join() # block for termination
+ if job:
433
+ job.apply_async().join() # block for termination
434
435
436
@python_2_unicode_compatible
0 commit comments