Based on your comments assuming your operator is:
class MyOperator(BaseOperator):
@apply_defaults
def __init__(self,
input_id,
input_date,
input_status,
*args, **kwargs):
super(MyOperator, self).__init__(*args, **kwargs)
self.input_id=input_id
self.input_date=input_date
self.input_status=input_status
def execute(self, context):
pass
You can use it as follows:
start_op = DummyOperator(task_id='start_op')
for row in return_db_result:
op1 = MyOperator(task_id=f"op1_{row.id}", input_id=row.id, input_date=row.date, input_status=row.status)
op2 = MyOperator(task_id=f"op2_{row.id}", input_id=row.id, input_date=row.date, input_status=row.status)
op3 = MyOperator(task_id=f"op3_{row.id}", input_id=row.id, input_date=row.date, input_status=row.status)
op4 = MyOperator(task_id=f"op4_{row.id}", input_id=row.id, input_date=row.date, input_status=row.status)
start_op >> op1 >> op2 >> op3 >> op4
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…