You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement dependency between two dags: parent_dag and child_dag.
parent dag has two dummy tasks: leave_work, cook_dinner
child dag has three tasks: wait_for_dinner, have_dinner, play_with_food
wait_for_dinner uses external_task_sensor with external_dag_id as parent_dag and external_task_id as cook_dinner.
start_date and schedule_interval are same for both the dags.
when parent_dag gets completed then wait_for_dinner should be succesfully exited and next task should run but its not happening in my case. (It is working fine if dags are not scheduled i.e. schedule_interval = @once) If dags are scheduled then wait_for_dinner is in running state forever. it is not listening parent_dag success.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to implement dependency between two dags: parent_dag and child_dag.
parent dag has two dummy tasks: leave_work, cook_dinner
child dag has three tasks: wait_for_dinner, have_dinner, play_with_food
wait_for_dinner uses external_task_sensor with external_dag_id as parent_dag and external_task_id as cook_dinner.
start_date and schedule_interval are same for both the dags.
when parent_dag gets completed then wait_for_dinner should be succesfully exited and next task should run but its not happening in my case. (It is working fine if dags are not scheduled i.e. schedule_interval = @once) If dags are scheduled then wait_for_dinner is in running state forever. it is not listening parent_dag success.
Kindly help me with this.
code snippets:
parent_dag :
child_dag:
Beta Was this translation helpful? Give feedback.
All reactions