예제 #1
0
 def create_ti_mapping(task: "Operator",
                       indexes: Tuple[int, ...]) -> Generator:
     created_counts[task.task_type] += 1
     for map_index in indexes:
         yield TI.insert_mapping(self.run_id,
                                 task,
                                 map_index=map_index)
예제 #2
0
 def create_ti_mapping(task: "BaseOperator"):
     created_counts[task.task_type] += 1
     return TI.insert_mapping(self.run_id, task)
예제 #3
0
 def create_ti_mapping(task: "Operator") -> dict:
     created_counts[task.task_type] += 1
     return TI.insert_mapping(self.run_id, task, map_index=-1)