Open jroach-astronomer opened 3 months ago
Yes! I agree - it feels like a lot of boilerplate as is, and IMO it's borderline dangerous if you forgot to clean the dags. Haven't tested but I can see there being a lot of confusion if, when hosting Airflow in K8s and using git-sync, a config file is deleted. The dag will still be there and will most likely be able to run. Then, if the dag processor container restarts (likely on k8s), the dag will "all of a sudden" go missing.
@jroach-astronomer - is there any reason you can think of where you wouldn't want to remove no longer defined dags?
Not one that I can think of, I'm right there with you, I think it would be dangerous to allow for no-longer-defined DAGs to exist.
Currently, once a
.yml
file has been created, the following code (or something like this) will have to be created to "instantiate" the DAG.I think it would be more intuitive to do something like what is shown below. I know this is somewhat pedantic, and feel free to close this issue if so.