The freezer.scheduler.freezer_scheduler Module

The freezer.scheduler.freezer_scheduler Module

Copyright 2015 Hewlett-Packard

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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)
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()
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

freezer 6.0.1.dev5