dimon222 opened a new issue #9148:
URL: https://github.com/apache/airflow/issues/9148


   **Apache Airflow version**:
   1.10.10
   
   **Database version**:
   MariaDB
   
   **What happened**:
   When task fails, next task retry raises this exception immediately:
   <details><summary>INSERT INTO rendered_task_instance_fields (dag_id, 
task_id, execution_date, rendered_fields) VALUES (%s, %s, %s, %s)
   ('test_dag', 'test_task', datetime.datetime(2020, 6, 4, 22, 20, 21, 139775), 
'')
   _mysql_exceptions.IntegrityError: (1062, "Duplicate entry 
'test_dag-test_task-2020-' for key 'PRIMARY')</summary></details>
   For some reason the value for execution date is calculated exactly same as 
previous retry. I might assume its not supposed to happen.
   
   **What you expected to happen**:
   Task retries correctly.
   
   **How to reproduce it**:
   Crash task that has retries > 1, wait for retry.
   Alternatively, crash task, then clear this task's state in dag view to cause 
manual retry.
   
   **Anything else we need to know**:
   It happens always on retry. Not happening on 1.10.9 (very recent regression)
   I'm able to retry correctly by removing related task records in MariaDB in 
rendered_task_instance_fields table.


----------------------------------------------------------------
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]


Reply via email to