worker_node.worker_node_task_instance
The Task Instance Object once it has been submitted to run on a worker node.
Attributes
Classes
The Task Instance object once it has been submitted to run on a worker node. |
Module Contents
- class worker_node.worker_node_task_instance.WorkerNodeTaskInstance(cluster_interface: jobmon.core.cluster_protocol.ClusterWorkerNode, task_instance_id: int, task_instance_heartbeat_interval: int | None = None, heartbeat_report_by_buffer: float | None = None, command_interrupt_timeout: int | None = None, requester: jobmon.core.requester.Requester | None = None)[source]
The Task Instance object once it has been submitted to run on a worker node.
- property distributor_id: str | None[source]
Executor id given from the executor it is being run on.
- configure_logging() None[source]
Setup logging for the worker node. INFO level goes to standard out.
- log_error(error_state: str, description: str) None[source]
Tell the JobStateManager that this task_instance has errored.
- log_running() None[source]
Tell the JobStateManager that this task_instance is running.
Update the report_by_date to be further in the future in case it gets reconciled immediately.
- run() None[source]
This script executes on the target node and wraps the target application.
Could be in any language, anything that can execute on linux. Similar to a stub or a container set ENV variables in case tasks need to access them.
- static _communicate(async_stream: asyncio.StreamReader, output_stream: TextIO, chunk_size: int = 64) str[source]
- Async:
- async _process_poller(process: asyncio.subprocess.Process) int[source]