Skip to content

Commit e2636f6

Browse files
author
Dhruv Garg
committed
reorder event queue priority to process scheduler events before task placement
1 parent 14190ad commit e2636f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simulator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class EventType(Enum):
3838
TASK_PREEMPT = 7 # Ask the simulator to preempt a task.
3939
TASK_MIGRATION = 8 # Ask the simulator to migrate a task.
4040
LOAD_PROFILE = 9 # Ask the simulator to load a profile into the WorkerPool.
41-
TASK_PLACEMENT = 10 # Ask the simulator to place a task.
42-
SCHEDULER_START = 11 # Requires the simulator to invoke the scheduler.
43-
SCHEDULER_FINISHED = 12 # Signifies the end of the scheduler loop.
41+
SCHEDULER_START = 10 # Requires the simulator to invoke the scheduler.
42+
SCHEDULER_FINISHED = 11 # Signifies the end of the scheduler loop.
43+
TASK_PLACEMENT = 12 # Ask the simulator to place a task.
4444
SIMULATOR_END = 13 # Signify the end of the simulator loop.
4545
LOG_UTILIZATION = 14 # Ask the simulator to log worker pool utilization.
4646
LOG_STATS = 15 # Log simulator statistics

0 commit comments

Comments
 (0)