From e2636f6facd11161dc16ba3fff24a1bbc5e9b9ab Mon Sep 17 00:00:00 2001 From: Dhruv Garg Date: Mon, 2 Dec 2024 23:49:46 -0500 Subject: [PATCH] reorder event queue priority to process scheduler events before task placement --- simulator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simulator.py b/simulator.py index d80335fe..882526e2 100644 --- a/simulator.py +++ b/simulator.py @@ -38,9 +38,9 @@ class EventType(Enum): TASK_PREEMPT = 7 # Ask the simulator to preempt a task. TASK_MIGRATION = 8 # Ask the simulator to migrate a task. LOAD_PROFILE = 9 # Ask the simulator to load a profile into the WorkerPool. - TASK_PLACEMENT = 10 # Ask the simulator to place a task. - SCHEDULER_START = 11 # Requires the simulator to invoke the scheduler. - SCHEDULER_FINISHED = 12 # Signifies the end of the scheduler loop. + SCHEDULER_START = 10 # Requires the simulator to invoke the scheduler. + SCHEDULER_FINISHED = 11 # Signifies the end of the scheduler loop. + TASK_PLACEMENT = 12 # Ask the simulator to place a task. SIMULATOR_END = 13 # Signify the end of the simulator loop. LOG_UTILIZATION = 14 # Ask the simulator to log worker pool utilization. LOG_STATS = 15 # Log simulator statistics