File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,6 @@ def __init__(self) -> None:
141
141
142
142
# Enable orchestrated mode
143
143
FLAGS .orchestrated = True
144
- # Set minimum placement push duration to 1s
145
- FLAGS .min_placement_push_duration = 1_000_000
146
144
# Set scheduler runtime to zero
147
145
FLAGS .scheduler_runtime = 0
148
146
Original file line number Diff line number Diff line change @@ -525,6 +525,8 @@ def tick(self, until: EventTime) -> None:
525
525
"""Tick the simulator until the specified time"""
526
526
527
527
def f ():
528
+ self ._logger .debug (f"EQ: { self ._event_queue } " )
529
+
528
530
time_until_next_event = self .__time_until_next_event ()
529
531
530
532
if (
@@ -1618,6 +1620,14 @@ def __handle_update_workload(self, event: Event) -> None:
1618
1620
1619
1621
# Release the Tasks that have become available.
1620
1622
releasable_tasks = self ._workload .get_releasable_tasks ()
1623
+
1624
+ # Ignore non-source tasks, they get auto-released when the parent finishes
1625
+ def is_source_task (task ):
1626
+ task_graph = self ._workload .get_task_graph (task .task_graph )
1627
+ return task_graph .is_source_task (task )
1628
+
1629
+ releasable_tasks = [task for task in releasable_tasks if is_source_task (task )]
1630
+
1621
1631
self ._logger .info (
1622
1632
"[%s] The WorkloadLoader %s has %s TaskGraphs that released %s tasks." ,
1623
1633
self ._simulator_time .to (EventTime .Unit .US ).time ,
@@ -1666,6 +1676,7 @@ def __handle_update_workload(self, event: Event) -> None:
1666
1676
1667
1677
max_release_time = self ._simulator_time
1668
1678
for task in releasable_tasks :
1679
+
1669
1680
event = Event (
1670
1681
event_type = EventType .TASK_RELEASE , time = task .release_time , task = task
1671
1682
)
You can’t perform that action at this time.
0 commit comments