sequential.seq_distributor
Sequential distributor that runs one task at a time.
Attributes
Classes
Dictionary for exit info. |
|
Executor to run tasks one at a time. |
|
Get Executor Info for a Task Instance. |
Module Contents
- sequential.seq_distributor.logger
- class sequential.seq_distributor.LimitedSizeDict(*args: int, **kwds: int)
Bases:
collections.OrderedDictDictionary for exit info.
Initialization of LimitedSizeDict.
- size_limit
- class sequential.seq_distributor.SequentialDistributor(cluster_name: str, exit_info_queue_size: int = 1000, *args: tuple, **kwargs: dict)
Bases:
jobmon.core.cluster_protocol.ClusterDistributorExecutor to run tasks one at a time.
Initialization of the sequential distributor.
- Parameters:
- started = False
- get_queueing_errors(distributor_ids: List[str]) Dict[str, str]
Get the task instances that have errored out.
Sequential runs synchronously so queueing errors aren’t possible.
- get_remote_exit_info(distributor_id: str) jobmon.core.exit_info.RemoteExitInfo
Get exit info from task instances that have run.
- get_submitted_or_running(distributor_ids: List[str] | None = None) Set[str]
Check status of running task.
Sequential tasks complete before submit_to_batch_distributor returns, so nothing is ever submitted or running at heartbeat time.
- class sequential.seq_distributor.SequentialWorkerNode
Bases:
jobmon.core.cluster_protocol.ClusterWorkerNodeGet Executor Info for a Task Instance.
Initialization of the sequential executor worker node.
- initialize_logfile(log_type: str, log_dir: str, name: str) str
Error and exit code info from the executor.
- get_usage_stats() Dict
Usage information specific to the executor.