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)[source]

Bases: object

create_job(job_doc)[source]
end_session(session_id, job_id, session_tag, result)[source]
get_jobs()[source]
is_scheduled(job_id)[source]
poll()[source]
reload()[source]
start()[source]
start_session(session_id, job_id, session_tag)[source]
stop()[source]
update_job(job_id, job_doc)[source]
update_job_schedule(job_id, job_schedule)[source]

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)[source]
upload_metadata(metadata_doc)[source]
freezer.scheduler.freezer_scheduler.main()[source]