airflow-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reed Villanueva <rvillanu...@ucera.org>
Subject How to stop airflow running dags (at unscheduled times) automatically when initially turned on?
Date Wed, 23 Oct 2019 21:17:36 GMT
How to stop airflow running dags (at unscheduled times) automatically when
initially turned on?

My dags look like...

default_args = {
    'owner': 'rvillanueva',
    'depends_on_past': False,
    'start_date': datetime(2019, 10, 13),
    'email': ['me@co.com'],
    'email_on_failure': True,
    # 'email_on_retry': False,
    'retries': 0,
    'retry_delay': timedelta(minutes=5),
    'max_active_runs': 3,
    # 'queue': 'bash_queue',
    # 'pool': 'backfill',
    # 'priority_weight': 10,
    # 'end_date': datetime(2016, 1, 1),}

dag = DAG('mydag', default_args=default_args, catchup=False,
schedule_interval="10 22 * * *")...

I had thought that having depends_on_past=False or catchup=False would be
enough to stop this, but dags are still running once right when they are
turned on in the webserver UI (causing them end up overlapping runs on
their actual scheduled times in some cases).

Is there any way to stop this?

-- 
This electronic message is intended only for the named 
recipient, and may 
contain information that is confidential or 
privileged. If you are not the 
intended recipient, you are 
hereby notified that any disclosure, copying, 
distribution or 
use of the contents of this message is strictly 
prohibited. If 
you have received this message in error or are not the 
named
recipient, please notify us immediately by contacting the 
sender at 
the electronic mail address noted above, and delete 
and destroy all copies 
of this message. Thank you.

Mime
View raw message