handle nodes re-registering with existing work (#146)

This commit is contained in:
bmc-msft
2020-10-15 10:21:20 -04:00
committed by GitHub
parent 5f7105fd59
commit 543dad30e2

View File

@ -107,6 +107,9 @@ def post(req: func.HttpRequest) -> func.HttpResponse:
)
node.save()
# if any tasks were running during an earlier instance of this node, clear them out
node.mark_tasks_stopped_early()
return create_registration_response(node.machine_id, pool)