ProgramExecution

class pyniryo_nate.models.programs.ProgramExecution(id: str, program_id: str, context: ProgramExecutionContext, started_at: datetime | None, finished_at: datetime | None, exit_code: int | None, status: ExecutorStatus, program_name: str | None = None)[source]

Bases: object

Represents a program execution instance.

Parameters:
  • id (str) – The unique identifier of the execution.

  • program_id (str) – The ID of the program being executed.

  • program_name (str | None) – The name of the program being executed, when the robot reports it.

  • context (ProgramExecutionContext) – The execution context (environment variables and arguments).

  • started_at (datetime | None) – When the execution started.

  • finished_at (datetime | None) – When the execution finished.

  • exit_code (int | None) – The exit code of the program execution.

  • status (ExecutorStatus)

Attributes

Methods

id: str
program_id: str
context: ProgramExecutionContext
started_at: datetime | None
finished_at: datetime | None
exit_code: int | None
status: ExecutorStatus
program_name: str | None = None
classmethod from_transport_model(model: ProgramExecution) → ProgramExecution[source]
Parameters:

model (ProgramExecution)

Return type:

ProgramExecution

to_transport_model() → ProgramExecution[source]
Return type:

ProgramExecution