Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
doc/tuto: Engine.instance is a python property
authormsimonin <matthieu.simonin@inria.fr>
Mon, 4 Apr 2022 08:28:11 +0000 (10:28 +0200)
committermsimonin <matthieu.simonin@inria.fr>
Mon, 4 Apr 2022 08:28:42 +0000 (10:28 +0200)
docs/source/tuto_s4u/master-workers-lab2.py

index 58caaf1..09b7b20 100644 (file)
@@ -22,7 +22,7 @@ def master(*args):
 
     this_actor.info(f"Got {tasks_count} tasks to process")
 
-    hosts = Engine.instance().get_all_hosts()
+    hosts = Engine.instance.get_all_hosts()
 
     for h in hosts:
         Actor.create(f'Worker-{h.name}', h, worker)