在Apache Airflow Tool中,由于task

编程入门 行业动态 更新时间:2024-10-28 16:28:37
本文介绍了在Apache Airflow Tool中,由于task_instance表中的重复输入问题,DAG无法运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

今天,我整天都在Airflow的调度程序中遇到此错误。

Today all day i have been getting this error in the scheduler of Airflow.

sqlalchemy.exc.IntegrityError: (_mysql_exceptions.IntegrityError) (1062, "Duplicate entry '%' fir key 'PRIMARY')")

因此,Airflow Scheduler将会停止,并且每次我运行时都会遇到相同的问题

Because of this the Airflow Scheduler would stop and every time i ran this had the same problem

推荐答案

这是由于MySQL的ON UPDATE CURRENT_TIMESTAMP导致的,并发布在Airflow的JIRA中:

This is due to MySQL's ON UPDATE CURRENT_TIMESTAMP and this is posted in JIRA of Airflow :

https:// issues。 apache/jira/projects/AIRFLOW/issues/AIRFLOW-3045?filter=allopenissues

我通过将表格更改为

alter table `task_instance` change `execution_date` `execution_date` TIMESTAMP(6) not null DEFAULT CURRENT_TIMESTAMP(6);

更多推荐

在Apache Airflow Tool中,由于task

本文发布于:2023-11-24 01:31:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623482.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Airflow   Apache   task   Tool

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!