logger.warn("Moving of pipeline radb_id=%s otdb_id=%s caused the status to change to %s",updated_task['id'],updated_task['otdb_id'],updated_task['status'])
shift=max_pred_endtime-task['starttime']
#TODO: automatically resolve conflict status by moved pipeline in first free time slot.
logger.info("Moving ahead %s pipeline radb_id=%s otdb_id=%s by %s",task['status'],task['id'],task['otdb_id'],shift)
logger.warn("Moving of pipeline radb_id=%s otdb_id=%s caused the status to change to %s",updated_task['id'],updated_task['otdb_id'],updated_task['status'])
#TODO: automatically resolve conflict status by moved pipeline in first free time slot.
exceptExceptionase:
exceptExceptionase:
logger.error("Error while checking scheduled pipelines: %s",e)
logger.error("Error while checking scheduled pipelines: %s",e)
defcheckApprovedTasks(self):
defcheckApprovedTasks(self):
try:
try:
now=datetime.utcnow()
logger.info('checking approved tasks for status in mom')