Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add possibility to dispatch tasks (work in progress)
[simgrid.git] / examples / python / task-io / task-io.py
index 431a78990c55405ca8a07060f8dd2258e450e5c1..e75215a0f7501dc3583eb815c199042d4b5a6e84 100644 (file)
@@ -41,10 +41,10 @@ if __name__ == '__main__':
     read.add_successor(exec2)
 
     # Add a function to be called when tasks end for log purpose
-    Task.on_end_cb(callback)
+    Task.on_completion_cb(callback)
 
-    # Enqueue two executions for task exec1
-    exec1.enqueue_execs(2)
+    # Enqueue two firings for task exec1
+    exec1.enqueue_firings(2)
 
     # runs the simulation
     e.run()