Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting DAGs Uses SerializedDAG instead of DagBag #64

Closed
wants to merge 2 commits into from

Conversation

alex-astronomer
Copy link
Contributor

I noticed a case on Astro where the webserver didn't have any DAGs in the container's dags directory. Airflow 2.0 introduced Serialized DAGs which keep the webserver stateless and offload the parsing process to the scheduler. This also keeps the webserver more lightweight.

When we get DAGs for the DAGs Cutover view, it used the DagBag which pulls DAGs locally, however when there are no DAGs in the webserver, this returns no results.

This PR changes get_dags in the local client to use SerializedDagModel.read_all_dags() in order to pick up DAGs that are parsed and serialized.

I also changed CONTRIBUTING.md to use the DOCKER_BUILDKIT=1 argument, which I needed when building locally.

@alex-astronomer
Copy link
Contributor Author

#63 does the same, and I actually like that solution better!

@fritz-astronomer fritz-astronomer deleted the get-dags-from-serialized-dags branch February 13, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant