airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maciej Z (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-1420) Dag fails, but none of tasks has failed
Date Mon, 17 Jul 2017 16:54:00 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-1420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Maciej Z updated AIRFLOW-1420:
------------------------------
    Attachment:     (was: screenshot-1.png)

> Dag fails, but none of tasks has failed
> ---------------------------------------
>
>                 Key: AIRFLOW-1420
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1420
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Maciej Z
>         Attachments: screenshot-2.png, screenshot-3.png
>
>
> Here's the code:
> {noformat}
> # -*- coding: utf-8 -*-
> from airflow.operators.dummy_operator import DummyOperator
> from airflow.models import DAG
> from datetime import date, datetime, timedelta
> day_ago = datetime.combine(datetime.today() - timedelta(1), datetime.min.time())
> args = {'owner': 'airflow',  'start_date': day_ago,}
> dag = DAG(dag_id='not_running_dummy2_test', default_args=args, schedule_interval='00
* * * *',  dagrun_timeout=timedelta(hours=12))
> DummyOperator(task_id='a', dag=dag)  >>  DummyOperator(task_id='b', dag=dag, trigger_rule='one_failed')
> if __name__ == "__main__":
>     dag.cli()
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message