MatteoMart1994 edited a comment on issue #8494:
URL: https://github.com/apache/airflow/issues/8494#issuecomment-883413320
Issue still met in composer-1-15-0-airflow-1-10-12.
`Traceback (most recent call last)
File "/usr/local/lib/airflow/airflow/models/dagrun.py", line 470, in
verify_integrit
session.commit(
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line
1042, in commi
self.transaction.commit(
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line
504, in commi
self._prepare_impl(
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line
483, in _prepare_imp
self.session.flush(
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line
2523, in flus
self._flush(objects
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line
2664, in _flus
transaction.rollback(_capture_exception=True
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py",
line 69, in __exit_
exc_value, with_traceback=exc_tb
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line
182, in raise
raise exceptio
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line
2624, in _flus
flush_context.execute(
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py", line
422, in execut
rec.execute(self
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py", line
589, in execut
uow
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/persistence.py",
line 245, in save_ob
insert
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/orm/persistence.py",
line 1083, in _emit_insert_statement
c = cached_connections[connection].execute(statement, multiparams
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line
1011, in execut
return meth(self, multiparams, params
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line
298, in _execute_on_connectio
return connection._execute_clauseelement(self, multiparams, params
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line
1130, in _execute_clauseelemen
distilled_params
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line
1317, in _execute_contex
e, statement, parameters, cursor, contex
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line
1511, in _handle_dbapi_exceptio
sqlalchemy_exception, with_traceback=exc_info[2], from_=
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line
182, in raise
raise exceptio
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line
1257, in _execute_contex
cursor, statement, parameters, contex
File
"/opt/python3.6/lib/python3.6/site-packages/sqlalchemy/dialects/mysql/mysqldb.py",
line 148, in do_executeman
rowcount = cursor.executemany(statement, parameters
File "/opt/python3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line
285, in executeman
self._get_db().encoding
File "/opt/python3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line
322, in _do_execute_man
rows += self.execute(sql + postfix
File "/opt/python3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line
255, in execut
self.errorhandler(self, exc, value
File "/opt/python3.6/lib/python3.6/site-packages/MySQLdb/connections.py",
line 50, in defaulterrorhandle
raise errorvalu
File "/opt/python3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line
252, in execut
res = self._query(query
File "/opt/python3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line
378, in _quer
db.query(q
File "/opt/python3.6/lib/python3.6/site-packages/MySQLdb/connections.py",
line 280, in quer
_mysql.connection.query(self, query
sqlalchemy.exc.IntegrityError: (_mysql_exceptions.IntegrityError) (1062,
"Duplicate entry
'logging_alerts-it-jen-bi-fmk-business-monitoring-alert-2021-07-1' for key
'PRIMARY'"`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]