X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f0534a5e2af72c36c12d55f7ea323040e6e9bf36..3f756b051175054c62c4741fdab2a6b934828262:/examples/python/task-io/task-io.py diff --git a/examples/python/task-io/task-io.py b/examples/python/task-io/task-io.py index b74c41169c..e75215a0f7 100644 --- a/examples/python/task-io/task-io.py +++ b/examples/python/task-io/task-io.py @@ -24,7 +24,6 @@ if __name__ == '__main__': args = parse() e = Engine(sys.argv) e.load_platform(args.platform) - Task.init() # Retrieve hosts bob = e.host_by_name('bob') @@ -42,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()