otf.local_scheduler: Run workflows locally#
A toy local scheduler to demonstrate how to use OTF
- otf.local_scheduler.defer(fn, /, *args, **kwargs)#
Schedules
fn(*args, **kwargs)to be executed in a separate process.Must be called from within a
Schedulercontext.
- class otf.local_scheduler.Future(scheduler_id, local_id, task)#
Handle on the result of a deferred computation
- class otf.local_scheduler.Scheduler#
Class to run workflows locally.
- run(wf, /, *args, **kwargs)#
Run an async workflow.
All the futures (ie: the values we “await” on) must be created via
dispatch().
- class otf.local_scheduler.Checkpoint(parent, suspension)#
- suspension#
A snapshot of the running workflow
- Type
- parent#
The parent step in the computation
- Type