kopia lustrzana https://github.com/OpenDroneMap/WebODM
Fixed cancel task logic
rodzic
794e5589f3
commit
366aa82346
|
@ -351,11 +351,10 @@ class Task(models.Model):
|
||||||
# We don't care if this fails (we tried)
|
# We don't care if this fails (we tried)
|
||||||
try:
|
try:
|
||||||
self.processing_node.cancel_task(self.uuid)
|
self.processing_node.cancel_task(self.uuid)
|
||||||
self.status = None
|
|
||||||
except ProcessingException:
|
except ProcessingException:
|
||||||
logger.warning("Could not cancel {} on processing node. We'll proceed anyway...".format(self))
|
logger.warning("Could not cancel {} on processing node. We'll proceed anyway...".format(self))
|
||||||
self.status = status_codes.CANCELED
|
|
||||||
|
|
||||||
|
self.status = status_codes.CANCELED
|
||||||
self.pending_action = None
|
self.pending_action = None
|
||||||
self.save()
|
self.save()
|
||||||
else:
|
else:
|
||||||
|
|
Ładowanie…
Reference in New Issue