toil.serviceManager
¶
Module Contents¶
Classes¶
Manages the scheduling of services. |
Attributes¶
- 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
- check()[source]¶
Check on the service manager thread.
- Raises:
RuntimeError – If the underlying thread has quit.
- Return type:
None