[ 
https://issues.apache.org/jira/browse/AIRFLOW-4463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16863040#comment-16863040
 ] 

ASF subversion and git services commented on AIRFLOW-4463:
----------------------------------------------------------

Commit b0a0dc96c340c068a70ea8e877ba137101403606 in airflow's branch 
refs/heads/v1-10-stable from Chris Mitchell
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=b0a0dc9 ]

[AIRFLOW-4463] Handle divide-by-zero errors in short retry intervals (#5243)


(cherry picked from commit d1dceff69ab15f9ce28ea04215a693b81c8a93a2)


> Short DAG retries lead to a divide by zero-error
> ------------------------------------------------
>
>                 Key: AIRFLOW-4463
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4463
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.10.3
>            Reporter: Chris Mitchell
>            Assignee: Chris Mitchell
>            Priority: Minor
>             Fix For: 1.10.4
>
>
> A short retry interval leads to a divide by zero error. To replicate, create 
> a DAG with a short retry interval (1 second), and eventually the following 
> error will appear:
> ```
> Traceback (most recent call last):
> ...
>  File "/app/airflow/models/taskinstance.py", line 630, in next_retry_datetime
>  modded_hash = min_backoff + hash % min_backoff
> ZeroDivisionError: integer division or modulo by zero
> ```



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to