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)
def create_ti_mapping(task: "BaseOperator"): created_counts[task.task_type] += 1 return TI.insert_mapping(self.run_id, task)
def create_ti_mapping(task: "Operator") -> dict: created_counts[task.task_type] += 1 return TI.insert_mapping(self.run_id, task, map_index=-1)