toil.serviceManager¶
Attributes¶
Classes¶
Manages the scheduling of services. |
Module Contents¶
- toil.serviceManager.logger¶
- class toil.serviceManager.ServiceManager(job_store, toil_state)[source]¶
Manages the scheduling of services.
- Parameters:
job_store (toil.jobStores.abstractJobStore.AbstractJobStore)
toil_state (toil.toilState.ToilState)
- get_job_count()[source]¶
Get the total number of jobs we are working on.
(services and their parent non-service jobs)
- Return type:
- put_client(client_id)[source]¶
Schedule the services of a job asynchronously.
When the job’s services are running the ID for the job will be returned by toil.leader.ServiceManager.get_ready_client.
- Parameters:
client_id (str) – ID of job with services to schedule.
- Return type:
None
- kill_services(service_ids, error=False)[source]¶
Stop all the given service jobs.
- Parameters:
services – Service jobStoreIDs to kill
error (bool) – Whether to signal that the service failed with an error when stopping it.
service_ids (collections.abc.Iterable[str])
- Return type:
None
- check()[source]¶
Check on the service manager thread.
- Raises:
RuntimeError – If the underlying thread has quit.
- Return type:
None