mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 20:38:06 +00:00
Fix state management in the scheduler (#337)
This commit is contained in:
@ -190,6 +190,13 @@ def on_worker_event_running(
|
||||
# (as happens in 1.0.0 agents)
|
||||
task.on_start()
|
||||
|
||||
task_event = TaskEvent(
|
||||
task_id=task.task_id,
|
||||
machine_id=machine_id,
|
||||
event_data=WorkerEvent(running=event),
|
||||
)
|
||||
task_event.save()
|
||||
|
||||
return None
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user