kaxil commented on a change in pull request #6788: [AIRFLOW-5944] Rendering templated_fields without accessing DAG files URL: https://github.com/apache/airflow/pull/6788#discussion_r386659768
########## File path: airflow/models/dagrun.py ########## @@ -470,6 +472,12 @@ def verify_integrity(self, session=None): 1, 1) ti = TI(task, self.execution_date) session.add(ti) + session.commit() + + if STORE_SERIALIZED_DAGS: + RenderedTaskInstanceFields.delete_old_records(ti.task_id, ti.dag_id) + if not RenderedTaskInstanceFields.has_templated_fields(ti, session): + session.add(RenderedTaskInstanceFields(ti)) Review comment: I want to change the location of this piece of code. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services