SequentialRunner
kedro.runner.SequentialRunner ¶
SequentialRunner(is_async=False)
Bases: AbstractRunner
SequentialRunner
is an AbstractRunner
implementation. It can
be used to run the Pipeline
in a sequential manner using a
topological sort of provided nodes.
Parameters:
-
is_async
(bool
, default:False
) –If True, the node inputs and outputs are loaded and saved asynchronously with threads. Defaults to False.
Source code in kedro/runner/sequential_runner.py
25 26 27 28 29 30 31 32 33 34 35 |
|
_get_executor ¶
_get_executor(max_workers)
Source code in kedro/runner/sequential_runner.py
37 38 |
|
_run ¶
_run(pipeline, catalog, hook_manager=None, run_id=None)
The method implementing sequential pipeline running.
Parameters:
-
pipeline
(Pipeline
) –The
Pipeline
to run. -
catalog
(CatalogProtocol
) –An implemented instance of
CatalogProtocol
from which to fetch data. -
hook_manager
(PluginManager | None
, default:None
) –The
PluginManager
to activate hooks. -
run_id
(str | None
, default:None
) –The id of the run.
Raises:
-
Exception
–in case of any downstream node failure.
Source code in kedro/runner/sequential_runner.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|