You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Sangameshmsopen (via GitHub)" <gi...@apache.org> on 2023/02/09 13:32:50 UTC

[GitHub] [airflow] Sangameshmsopen commented on issue #8181: Duplicate key value violates unique constraint "task_instance_pkey" error

Sangameshmsopen commented on issue #8181:
URL: https://github.com/apache/airflow/issues/8181#issuecomment-1424198453

   Hello all,
   We have observed that in Airflow scheduler heartbeat has stopped and all the DAGs were in queued or running state. We have checked scheduler logs and got the below error. May i know what might be the cause for this.
   Details: We are running Airflow in Google cloud Composer service with below versions
   composer-2.1.4
   airflow-2.4.3
    Thanks in advance
    
    sqlalchemy.exc.PendingRollbackError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "task_instance_pkey"


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org