How do you fill ExternalTaskSensor
parameter external_dag_id
?
- Hardcode. It's very simple but hard to mantain DAG, if external DAG's dag_id changed you must keep in mind to change
external_dag_id
also. Even some misspell that is unware. - or import that dag and use
external_dag.dag_id
. This solve problem above. But it may issue cyclic dependency and some global variables problem. These problems are more unware than Hardcode solution.
Do anyone have some best practice abount this in production? Any advises are welcome.