Esempio n. 1
0
def update_fleet():
	count = 0
	while count < FLEET_UPDATE_MAX_RUNS:
		try:
			tasks_log.info("Update Jobs and JobItems Fleets. Attempt " + str(count))
			fleet_manager.update_fleet_capacity()
		except Exception, err:
			tasks_log.error(traceback.format_exc())
		finally:
Esempio n. 2
0
def poll_job_items_queue():
	count = 0
	while count < POLL_JOB_ITEMS_MAX_RUNS:
		try:
			tasks_log.info("Polling job_items queue " + str(count))
			process_next_job_item()
		except Exception, err:
			tasks_log.error(traceback.format_exc())
		finally:
Esempio n. 3
0
def update_fleet():
    count = 0
    while count < FLEET_UPDATE_MAX_RUNS:
        try:
            tasks_log.info("Update Jobs and JobItems Fleets. Attempt " +
                           str(count))
            fleet_manager.update_fleet_capacity()
        except Exception, err:
            tasks_log.error(traceback.format_exc())
        finally:
Esempio n. 4
0
def poll_jobs_queue():
	count = 0
	while count < POLL_JOBS_MAX_RUNS:
		try:
			tasks_log.info("Polling jobs created + in-progress queues " + str(count))
			update_jobs_created()
			update_jobs_in_progress()
		except Exception, err:
			tasks_log.error(traceback.format_exc())
		finally:
Esempio n. 5
0
def poll_jobs_queue():
    count = 0
    while count < POLL_JOBS_MAX_RUNS:
        try:
            tasks_log.info("Polling jobs created + in-progress queues " +
                           str(count))
            update_jobs_created()
            update_jobs_in_progress()
        except Exception, err:
            tasks_log.error(traceback.format_exc())
        finally: