Attention

This project is still in an early phase of development.

The python API is not yet stable, and some aspects of the schema for the blueprint and workplan will likely evolve. Therefore whilst you are welcome to try out using the package, we cannot yet guarantee backwards compatibility. We expect to reach a more stable version in 2026.

ExecutionHandler#

class cstar.execution.handler.ExecutionHandler#

Bases: ABC, LoggingMixin

Abstract base class for managing the execution of a task or process.

This class defines the interface and common behavior for handling task execution, such as monitoring the status and providing live updates from an output file.

status#

Represents the current status of the task (e.g., RUNNING, COMPLETED). This is an abstract property that must be implemented by subclasses.

Type:

ExecutionStatus

updates(seconds=10)#

Stream live updates from the task’s output file for a specified duration.

Methods

ExecutionHandler.updates([seconds])

Stream live updates from the task's output file.

Attributes

ExecutionHandler.log

Return the logger instance for this class.

ExecutionHandler.output_file

Abstract property representing the output file.

ExecutionHandler.status

Abstract property representing the current status of the task.