Treatment getExecutor

work/resources::getExecutor


Inputs

⇥ name: Block<Option<string>>

Outputs

↦ error: Block<string>
↦ executor: Block<Executor> (process/exec::Executor)
↦ failed: Block<void>


Retrieve an executor by name from the current work environment.

name identifies the executor (container or Kubernetes pod) to look up. When name is None, a local executor is returned directly.

executor is emitted when the executor is found and ready. failed and error are emitted if the executor cannot be located or initialised.

graph LR
     T("getExecutor()")
     N["〈🟦〉"] -->|name| T
     T -->|executor| E["〈🟩〉"]
     T -->|error| ER["〈🟫〉"]
     T -->|failed| F["〈🟥〉"]
     style N fill:#ffff,stroke:#ffff
     style E fill:#ffff,stroke:#ffff
     style ER fill:#ffff,stroke:#ffff
     style F fill:#ffff,stroke:#ffff