File: parallel.rst

package info (click to toggle)
python-ewoksppf 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 336 kB
  • sloc: python: 2,673; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Parallel execution
==================

Options for parallel execution can be provided when executing a workflow

.. code:: python

    from ewoksppf import execute_graph

    result = execute_graph("/path/to/graph.json", pool_type=..., scaling_workers=..., max_workers=...)

The options are

  * `pool_type`: _thread_, _process_ (default), _ndprocess_, _multiprocessing_,
                 _ndmultiprocessing_, _billiard_, _gevent_ (default)
  * `scaling_workers`: _True_ (default) or _False_
  * `max_workers`: only applies when _scaling_workers=False_
  * `context`: _spawn_ or _fork_ (only applies when using processes)