Parsl Task Submission
The Wrapper
- Class
AppBase, defines the wrapper with basic attributes - Class
PythonApp, implements more attributes and the__call__()method to handle Python function.
The Future
- Inherited from
Futureinconcurrentmodule
An
AppFuturewraps a sequence ofFutureswhich may fail and be retried.The
AppFuturewill wait for theDFKto provide a result from an appropriate parent future, throughparent_callback. It will set its result to the result of that parent future, if that parent future completes without an exception. This result setting should cause.result(),.exception()anddonecallbacks to fire as expected.
The DataFlowKernel
- DFK is the core mechanism! “The
DataFlowKerneladds dependency awareness to an existing executor” app_futis a result ofdfk.submit()dfk.submit()takes all the arguments in the wrapper, i.e. theinvocation_kwargs- Class
TaskRecordstores most information about a Parsl task.
executor Choices
- in
submitofdfk,PythonApp.executorsargument of the task is interpreted aschoices DFKhas its ownslef.executors, which is aThreadPoolExecutorby default.