mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 20:08:09 +00:00
Stop tasks on nodes before deleting task queues (#801)
This commit is contained in:
@ -239,6 +239,8 @@ class Node(BASE_NODE, ORMMixin):
|
||||
task = Task.get_by_task_id(entry.task_id)
|
||||
if isinstance(task, Task):
|
||||
task.mark_failed(error)
|
||||
if not self.debug_keep_node:
|
||||
entry.delete()
|
||||
|
||||
def could_shrink_scaleset(self) -> bool:
|
||||
from .scalesets import ScalesetShrinkQueue
|
||||
|
Reference in New Issue
Block a user