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

Refactor SerializedDagModel and DagCode for dag versioning #43821

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ephraimbuddy
Copy link
Contributor

Now that we have dag versioning, the SerializedDagModel and DagCode objects should no longer be deleted. Deletion should start with the DagModel, which will cascade to the DagVersion, then to the DagCode and SerializedDagModel.

Also, these models are no longer updated. Instead, a new object is added; hence, the last_updated is changed to created_at.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:db-migrations PRs with DB migration area:Scheduler including HA (high availability) scheduler area:serialization kind:documentation labels Nov 8, 2024
@ephraimbuddy ephraimbuddy force-pushed the versioning-refactor branch 2 times, most recently from 2bfd429 to 328f018 Compare November 11, 2024 07:55
Now that we have dag versioning, the SerializedDagModel and
DagCode objects should no longer be deleted. Deletion should
start with the DagModel, which will cascade to the DagVersion,
then to the DagCode and SerializedDagModel.

Also, these models are no longer updated. Instead, a new
object is added; hence, the last_updated is changed to created_at.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API area:db-migrations PRs with DB migration area:Scheduler including HA (high availability) scheduler area:serialization kind:documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant