Skip to content

Commit

Permalink
controller: Add experiment_index to p_list
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Nov 2, 2023
1 parent fc98c6c commit 92effdd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,6 @@ def controller(
and queue_output.qsize() < queuedepth
):
faults = faultlist[itter]
itter += 1

p = Process(
name=f"worker_{faults['index']}",
Expand All @@ -754,12 +753,16 @@ def controller(
),
)
p.start()
p_list.append({"process": p, "start_time": time.time()})
p_list.append(
{"process": p, "start_time": time.time(), "experiment_index": itter}
)
clogger.debug(f"Started worker {faults['index']}. Running: {len(p_list)}.")
clogger.debug(f"Fault address: {faults['faultlist'][0].address}")
clogger.debug(
f"Fault trigger address: {faults['faultlist'][0].trigger.address}"
)

itter += 1
else:
time.sleep(0.005) # wait for workers to finish, scheduler can wait

Expand Down

0 comments on commit 92effdd

Please sign in to comment.