Replies: 1 comment 1 reply
-
I don't think this is possible just by design and nature of Airflow. I could be wrong but DAG code which you get from the API or could see in the UI only stored in Airflow Metabase for this purpose (and updated by dag_processor). In additional due to different use-cases DAG might also just bundled within docker image so it couldn't be changed in worker/dag_processor/scheduler service. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I'm wondering what folks think of an API to modify the source code for a given DAG?
Right now we have /dagSources/{file_token} with GET to get the file content. My logic is a POST to the same endpoint with a simple json blob of
should replace the file contents at that location on disk. The scheduler would eventually notice the change and update renderings, etc. If the disk is read only, it will fail when attempting to write.
I've had a couple cases where we've thought about having a quick way to remotely update a dag file for some testing. Looking for thoughts on this type of API. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions