You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Tim (JIRA)" <ji...@apache.org> on 2016/08/22 18:16:20 UTC

[jira] [Commented] (AIRFLOW-456) DAG status still running when all its tasks are complete

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

Tim commented on AIRFLOW-456:
-----------------------------

False alarm. It was a permissions issue. The user running the schedule didn't have permissions to write to the log file.

> DAG status still running when all its tasks are complete
> --------------------------------------------------------
>
>                 Key: AIRFLOW-456
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-456
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: Airflow 1.7.1.3
>            Reporter: Tim
>            Assignee: Siddharth Anand
>
> Airflow doesn't flag the DAG's as success even though all of the tasks in that DAG are complete. Once it gets to 16 "running" it doesn't run anymore.
> https://puu.sh/qKpym/05776f35de.png
> https://puu.sh/qKpxa/eceb8d139e.png
> My DAG
> {code:title=tutorial.py|borderStyle=solid}
> from airflow import DAG
> from airflow.operators.bash_operator import BashOperator
> from datetime import datetime, timedelta
> default_args = {
>     'owner': 'airflow',
>     'depends_on_past': False,
>     'start_date': datetime(2016, 8, 22),
>     'email': ['airflow@airflow.com'],
>     'email_on_failure': False,
>     'email_on_retry': False,
>     'retries': 1,
>     'retry_delay': timedelta(minutes=5),
>     # 'queue': 'bash_queue',
>     # 'pool': 'backfill',
>     # 'priority_weight': 10,
>     # 'end_date': datetime(2016, 1, 1),
> }
> dag = DAG(
>     'tutorial', default_args=default_args, schedule_interval='0,15,30,45 * * * *')
> # t1, t2 and t3 are examples of tasks created by instantiating operators
> t1 = BashOperator(
>     task_id='print_date',
>     bash_command='date',
>     dag=dag)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)