spinetoolbox.project_items.combiner.executable_item

Contains Combiner’s executable item as well as support utilities.

authors:
  1. Soininen (VTT)
date:

2.4.2020

Module Contents

Classes

ExecutableItem The part of a project item that is executed by the Spine Engine.
class spinetoolbox.project_items.combiner.executable_item.ExecutableItem(name, logs_dir, cancel_on_error, logger)[source]

Bases: spinetoolbox.executable_item_base.ExecutableItemBase, PySide2.QtCore.QObject

The part of a project item that is executed by the Spine Engine.

Parameters:
  • name (str) – item’s name
  • logs_dir (str) – path to the directory where logs should be stored
  • cancel_on_error (bool) – if True, revert changes on error and move on
  • logger (LoggerInterface) – a logger
static item_type()[source]

Returns Combiner’s type identifier string.

classmethod from_dict(cls, item_dict, name, project_dir, app_settings, specifications, logger)[source]

See base class.

stop_execution(self)[source]

Stops execution.

_execute_backward(self, resources)[source]

See base class.

static _urls_from_resources(resources)[source]
_execute_forward(self, resources)[source]

See base class.

_handle_worker_finished(self)[source]

Runs when Combiner worker has finished.

_destroy_current_worker(self)[source]

Runs when starting execution and after worker has finished. Destroys current loop, worker and quits thread, if any.