spinetoolbox.spine_engine_worker
Contains SpineEngineWorker.
Module Contents
Classes
|
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fails all project items. |
- spinetoolbox.spine_engine_worker._handle_node_execution_finished(item, direction, item_state)[source]
- spinetoolbox.spine_engine_worker._handle_event_message_arrived(item, filter_id, msg_type, msg_text)[source]
- spinetoolbox.spine_engine_worker._handle_process_message_arrived(item, filter_id, msg_type, msg_text)[source]
- spinetoolbox.spine_engine_worker._mark_all_items_failed(items)[source]
Fails all project items.
- Parameters
items (list of ProjectItem) – project items
- class spinetoolbox.spine_engine_worker.SpineEngineWorker(engine_data, dag, dag_identifier, project_items, connections, logger, job_id)[source]
Bases:
PySide6.QtCore.QObject
- Parameters
engine_data (dict) – engine data
dag (DirectedGraphHandler) –
dag_identifier (str) –
project_items (dict) – mapping from project item name to
ProjectItem
connections (dict) – mapping from jump name to
LoggingConnection
orLoggingJump
logger (LoggerInterface) – a logger
job_id (str) – Job id for remote execution
- get_engine_data()[source]
Returns the engine data. Together with
self.set_engine_data()
it can be used to modify the workflow after it’s initially created. We use it at the moment for creating Julia sysimages.- Returns
dict
- set_engine_data(engine_data)[source]
Sets the engine data.
- Parameters
engine_data (dict) – New data
- start(silent=False)[source]
Connects log signals.
- Parameters
silent (bool, optional) – If True, log messages are not forwarded to the loggers but saved in internal dicts.
- _included_and_ignored_items()[source]
Returns two lists, where the first one contains project items that are about to be executed and the second one contains project items that are about to be ignored.
- _included_items(permitted_items, connections)[source]
Collects a list of project item names that are going to be executed in this DAG based on execution permits and connections in the DAG.
- Parameters
permitted_items (dict) – Mapping of item names to bool. True items have been selected by user for execution.
connections (list) – Serialized connections
- Returns
Project item names
- Return type
list