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,LoggingMixinAbstract 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.logReturn the logger instance for this class.
ExecutionHandler.output_fileAbstract property representing the output file.
Abstract property representing the current status of the task.