[
https://issues.apache.org/jira/browse/AIRFLOW-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Harvey Xia updated AIRFLOW-695:
-------------------------------
Description:
Currently on the latest master commit
(15ff540ecd5e60e7ce080177ea3ea227582a4672), retries on tasks do not execute
because the state of the corresponding dagrun changes to FAILED. The task
instance then gets blocked because "Task instance's dagrun was not in the
'running' state but in the state 'failed'."
This error can be reproduced with the following simple DAG:
dag = models.DAG(dag_id='test_retry_handling')
task = BashOperator(
task_id='test_retry_handling_op',
bash_command='exit 1',
retries=1,
retry_delay=datetime.timedelta(seconds=0),
dag=dag,
owner='airflow',
start_date=datetime.datetime(2016, 2, 1, 0, 0, 0))
was:Currently on the latest master commit
(15ff540ecd5e60e7ce080177ea3ea227582a4672), retries on tasks do not execute
because the state of the corresponding dagrun changes to FAILED. The task
instance then gets blocked because "Task instance's dagrun was not in the
'running' state but in the state 'failed'."
> Retries do not execute because dagrun is in FAILED state
> --------------------------------------------------------
>
> Key: AIRFLOW-695
> URL: https://issues.apache.org/jira/browse/AIRFLOW-695
> Project: Apache Airflow
> Issue Type: Bug
> Components: DagRun
> Reporter: Harvey Xia
>
> Currently on the latest master commit
> (15ff540ecd5e60e7ce080177ea3ea227582a4672), retries on tasks do not execute
> because the state of the corresponding dagrun changes to FAILED. The task
> instance then gets blocked because "Task instance's dagrun was not in the
> 'running' state but in the state 'failed'."
> This error can be reproduced with the following simple DAG:
> dag = models.DAG(dag_id='test_retry_handling')
> task = BashOperator(
> task_id='test_retry_handling_op',
> bash_command='exit 1',
> retries=1,
> retry_delay=datetime.timedelta(seconds=0),
> dag=dag,
> owner='airflow',
> start_date=datetime.datetime(2016, 2, 1, 0, 0, 0))
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)