user3334761
user3334761

Reputation: 23

Airflow SLA miss implementation

i am new to Airflow and trying to implement the sla miss functionality in my DAG

default_args = {
    'owner': 'airflow',
    'depends_on_past': False,
    'start_date': datetime(2017,07,24),
    'email': ['[email protected]'],
    'email_on_failure': False,
    'email_on_retry': False,
    'retries': 5,
    'retry_delay': timedelta(minutes=5),
    'sla':timedelta(seconds=30),
    'pool':'demo',
    'queue':'slaq',
    'run_as_user':'ec2-user'
}

but this sla is not applied and i am not able to figure out what the issue is

I also gave the sla at the task level as well with no luck.

Any help is greatly appreciated.

Thanks

Upvotes: 2

Views: 2701

Answers (1)

Andrea Maruccia
Andrea Maruccia

Reputation: 307

I don't know if this will fix your problem but one thing about sla's in Airflow is that they only work with a scheduled task. If you run them manually sla's are not being considered.

Upvotes: 5

Related Questions