mik-laj commented on a change in pull request #10956:
URL: https://github.com/apache/airflow/pull/10956#discussion_r489347417
##########
File path: airflow/models/dagbag.py
##########
@@ -510,6 +513,6 @@ def sync_to_db(self):
DAG.bulk_sync_to_db(self.dags.values())
# Write Serialized DAGs to DB if DAG Serialization is turned on
# Even though self.read_dags_from_db is False
- if settings.STORE_SERIALIZED_DAGS:
+ if settings.STORE_SERIALIZED_DAGS or self.read_dags_from_db:
Review comment:
Can you tell a little more about it? How do you want serialization of
the same object to a database to produce different results? Is it by adding
the `next_dagrun`, `next_dagrun_create_after` fields to the DAG in the
sync_to_db method?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]