dummy
Dummy Executor fakes execution for testing purposes.
Attributes
Classes
Implementation of the dummy executor queue, derived from ClusterQueue. |
|
The Dummy Executor fakes the execution of a Task and acts as though it succeeded. |
|
Get Executor Info for a Task Instance. |
Functions
Return the queue class for the dummy executor. |
|
Return the cluster distributor for the dummy executor. |
|
Return the cluster worker node class for the dummy executor. |
Package Contents
- class dummy.DummyQueue(queue_id: int, queue_name: str, parameters: dict)[source]
Bases:
jobmon.core.cluster_protocol.ClusterQueueImplementation of the dummy executor queue, derived from ClusterQueue.
- validate_resources(strict: bool = False, **kwargs: str | int | float) Tuple[bool, str][source]
No resources defined for sequential execution. All resources valid.
- class dummy.DummyDistributor(cluster_name: str, *args: tuple, **kwargs: dict)[source]
Bases:
jobmon.core.cluster_protocol.ClusterDistributorThe Dummy Executor fakes the execution of a Task and acts as though it succeeded.
- get_queueing_errors(distributor_ids: List[str]) Dict[str, str][source]
Dummy tasks never error, since they never run. So always return an empty dict.
- get_submitted_or_running(distributor_ids: List[str] | None = None) Set[str][source]
Check which task instances are active.
- terminate_task_instances(distributor_ids: List[str]) None[source]
No such thing as running Dummy tasks. Therefore, nothing to terminate.
- submit_to_batch_distributor(command: str, name: str, requested_resources: Dict[str, Any]) str[source]
Run a fake execution of the task.
In a real executor, this is where submission to the cluster would happen (e.g. sbatch or qsub). Here, since it’s a dummy executor, we just get a random number and empty file paths.
- class dummy.DummyWorkerNode[source]
Bases:
jobmon.core.cluster_protocol.ClusterWorkerNodeGet Executor Info for a Task Instance.
- dummy.get_cluster_queue_class() Type[jobmon.core.cluster_protocol.ClusterQueue][source]
Return the queue class for the dummy executor.