class documentation
class ThreadRunner(AbstractRunner): (source)
ThreadRunner is an AbstractRunner implementation. It can be used to run the Pipeline in parallel groups formed by toposort using threads.
Method | __init__ |
Instantiates the runner. |
Method | create |
Factory method for creating the default dataset for the runner. |
Method | _get |
Calculate the max number of processes required for the pipeline |
Method | _run |
The abstract interface for running pipelines. |
Instance Variable | _max |
Undocumented |
Inherited from AbstractRunner
:
Method | run |
Run the Pipeline using the datasets provided by catalog and save results back to the same objects. |
Method | run |
Run only the missing outputs from the Pipeline using the datasets provided by catalog, and save results back to the same objects. |
Method | _suggest |
Suggest a command to the user to resume a run after it fails. The run should be started from the point closest to the failure for which persisted input exists. |
Instance Variable | _is |
Undocumented |
Property | _logger |
Undocumented |
overrides
kedro.runner.AbstractRunner.__init__
Instantiates the runner.
Parameters | |
maxint | Number of worker processes to spawn. If not set, calculated automatically based on the pipeline configuration and CPU core count. |
isbool | If True, set to False, because ThreadRunner
doesn't support loading and saving the node inputs and
outputs asynchronously with threads. Defaults to False. |
Raises | |
ValueError | bad parameters passed |
Factory method for creating the default dataset for the runner.
Parameters | |
dsstr | Name of the missing dataset. |
Returns | |
MemoryDataSet | An instance of MemoryDataSet to be used for all unregistered datasets. |
def _run(self, pipeline:
Pipeline
, catalog: DataCatalog
, hook_manager: PluginManager
, session_id: str
= None):
(source)
¶
overrides
kedro.runner.AbstractRunner._run
The abstract interface for running pipelines.
Parameters | |
pipeline:Pipeline | The Pipeline to run. |
catalog:DataCatalog | The DataCatalog from which to fetch data. |
hookPluginManager | The PluginManager to activate hooks. |
sessionstr | The id of the session. |
Raises | |
Exception | in case of any downstream node failure. |