mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 20:58:06 +00:00
handle nodes re-registering with existing work (#146)
This commit is contained in:
@ -107,6 +107,9 @@ def post(req: func.HttpRequest) -> func.HttpResponse:
|
|||||||
)
|
)
|
||||||
node.save()
|
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)
|
return create_registration_response(node.machine_id, pool)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user