airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "audubon (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-229) new DAG runs 5 times when manually started from website
Date Thu, 09 Jun 2016 23:32:21 GMT
audubon created AIRFLOW-229:
-------------------------------

             Summary: new DAG runs 5 times when manually started from website
                 Key: AIRFLOW-229
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-229
             Project: Apache Airflow
          Issue Type: Bug
    Affects Versions: Airflow 1.6.2
         Environment: celery, rabbitmq, mysql
            Reporter: audubon
            Priority: Minor


version 1.6.2
using celery, rabbitmq, mysql

example:

from airflow import DAG
from airflow.operators import BashOperator
from datetime import datetime, timedelta
import json
import sys

one_day_ahead = datetime.combine(datetime.today() + timedelta(1), datetime.min.time())
one_day_ahead = one_day_ahead.replace(hour=3, minute=31)

default_args = {
    'owner': 'airflow',
    'depends_on_past': False,
    'start_date': one_day_ahead,
    'email': ['me@email.com'],
    'email_on_failure': True,
    'email_on_retry': False,
    'retries': 1,
    'retry_delay': timedelta(minutes=5),
}

dag = DAG('alpha', default_args=default_args , schedule_interval='15 6 * * *' )

task = BashOperator(
        task_id='alphaV2',
        bash_command='sleep 10',
        dag=dag)



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

Mime
View raw message