def execute_taskflow(task_flow_id, task_list, ritm_no=''): for task_id in task_list: task = db_api.get_task(task_id) payload = task.get('payload') depend_data = task.get('depend_data') task_name = task.get('name') response = getattr('matilda_env.task.task_executor', task_name)(payload, '', depend_data) tdh.save_task_output(task_id, response['data'])
def get_task(self, task_id): return db_api.get_task(task_id)