We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35989e3 commit 1cab2bdCopy full SHA for 1cab2bd
backend/core/tasks.py
@@ -614,11 +614,11 @@ def predict_area(prediction_request_id, folder=None):
614
out,
615
parent=s3_out_path,
616
)
617
- inst.status, inst.finished_at, inst.result['count'] = (
618
- "FINISHED",
619
- timezone.now(),
620
- len(predictions["features"]),
621
- )
+ inst.status = "FINISHED"
+ inst.finished_at = timezone.now()
+ if inst.result is None:
+ inst.result = {}
+ inst.result['count'] = len(predictions["features"])
622
send_notification(inst, "Finished")
623
inst.save()
624
base_url = settings.API_BASE_URL + "/workspace/download/" + folder
0 commit comments