1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Execute a workflow from Python
==============================
Install requirements
.. code:: bash
pip install ewoks
Execute a workflow
.. code:: python
from ewoks import execute_graph
result = execute_graph("/path/to/graph.json", engine=None)
The :doc:`hello world <../hello_world>` example provides a small but complete example of
task implementation, workflow definition and workflow execution.
The *engine* argument can be
* *ppf*: required to execute cyclic workflows
* *dask*: required to parallelize workflow execution (thread, processes, cluster)
* *orange*: required to execute workflows with a graphical interface
When no *engine* is specified it will use sequential execution in the current process.
Bindings can be installed as follows
.. code:: bash
pip install ewoks[orange,dask,ppf]
For more information see the `ewokscore documentation <https://ewokscore.readthedocs.io/>`_.
|