kaxil commented on issue #6788: WIP: [AIRFLOW-5944] Rendering templated_fields without accessing DAG files URL: https://github.com/apache/airflow/pull/6788#issuecomment-581379180 2 tests are failing: ``` FAILED tests/operators/test_dagrun_operator.py::TestDagRunOperator::test_trigger_dagrun_operator_conf FAILED tests/operators/test_dagrun_operator.py::TestDagRunOperator::test_trigger_dagrun_with_execution_date = 2 failed, 4823 passed, 180 skipped, 7 xfailed, 1 xpassed, 130 warnings in 1623.07s (0:27:03) = ``` ``` self = <_mysql.connection closed at 559364d105d0> query = b"INSERT INTO rendered_task_instance_fields (dag_id, task_id, execution_date, rendered_fields) VALUES ('triggerdag', 'test', '2020-02-03 10:48:04.120893', '{}')" def query(self, query): # Since _mysql releases GIL while querying, we need immutable buffer. if isinstance(query, bytearray): query = bytes(query) if self.waiter is not None: self.send_query(query) self.waiter(self.fileno()) self.read_query_result() else: > _mysql.connection.query(self, query) E sqlalchemy.exc.IntegrityError: (_mysql_exceptions.IntegrityError) (1062, "Duplicate entry 'triggerdag-test-2020-02-03 10:48:04' for key 'PRIMARY'") E [SQL: INSERT INTO rendered_task_instance_fields (dag_id, task_id, execution_date, rendered_fields) VALUES (%s, %s, %s, %s)] E [parameters: ('triggerdag', 'test', datetime.datetime(2020, 2, 3, 10, 48, 4, 120893, tzinfo=<Timezone [UTC]>), '{}')] E (Background on this error at: http://sqlalche.me/e/gkpj) ```
---------------------------------------------------------------- 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] With regards, Apache Git Services
