It is not written to be pleasant to read, but instead to resist the aggressions of the monkey:
- Workers keep going until after a global variable `todo` reaches 0.
- The master is a daemon that just sends infinitely tasks
- (simgrid simulations stop as soon as all non-daemon actors are done).
+ (SimGrid simulations stop as soon as all non-daemon actors are done).
- The platform is created programmatically to remove path issues and control the problem size.
See the simgrid-monkey script for more information.
assert Engine.clock < deadline, f"Failed to run all tasks in less than {deadline} seconds. Is this an infinite loop?"
try:
- this_actor.info(f"Waiting a message on mailbox")
+ this_actor.info("Waiting a message on mailbox")
compute_cost = mailbox.get()
this_actor.info("Start execution...")