sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) update or delete on table "dag_run" violates foreign key constraint "task_instance_dag_run_fkey" on table "task_instance" DETAIL: Key (dag_id, run_id)=(abo72_dedicated_brm_for_net_revenue, manual__2023-04-12T14:03:50.679746+00:00) is still referenced from table "task_instance". #30601
Replies: 2 comments 5 replies
-
|
I am using airflow 2.4.3 version |
Beta Was this translation helpful? Give feedback.
-
|
Likely you are trying to run the same tasks again (for example by triggering it wiith the same run_id) - but it's hard to say withtout more details - without explaining the DAG code of yours and explaining what you are doing step-by-step. You might want to review the code of yours and search for some strange unusual ways of triggering tasks. Also it might be result of some bad db crash or programmatic error somewhere and maybe you will need to nuke your database or those individual records mentioned in the error. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am facing this issue while executing start task in one of my airflow dags. Can you please help here?
Beta Was this translation helpful? Give feedback.
All reactions