freezer.scheduler.freezer_scheduler module¶
- class freezer.scheduler.freezer_scheduler.FreezerScheduler(apiclient, interval, job_path, concurrent_jobs=1)¶
Bases:
object- create_job(job_doc)¶
- end_session(session_id, job_id, session_tag, result)¶
- filter_jobs(job_doc_list)¶
Filter jobs by supported capabilities.
- Parameters:
job_doc_list (list[dict]) – list of jobs
- Returns:
list of jobs
- Return type:
list[dict]
- get_jobs()¶
- is_scheduled(job_id)¶
- poll()¶
- reload()¶
- start()¶
- start_session(session_id, job_id, session_tag)¶
- stop()¶
- update_job(job_id, job_doc)¶
- update_job_schedule(job_id, job_schedule)¶
Pushes to the API the updates the job_schedule information of the job_doc
- Parameters:
job_id – id of the job to modify
job_schedule – dict containing the job_scheduler information
- Returns:
None
- update_job_status(job_id, status)¶
- upload_metadata(metadata_doc)¶
- freezer.scheduler.freezer_scheduler.main()¶
- freezer.scheduler.freezer_scheduler.update_auth_options(conf, client_opts)¶
Map options from the service_auth group onto a flat Namespace for freezerclient. Values from [service_auth] in the config file are used; CLI/env-var values (already resolved by oslo_config onto CONF.service_auth) naturally take precedence because oslo_config resolves them first.