Xiaodong DENG created AIRFLOW-2781:
--------------------------------------
Summary: SLA Usage
Key: AIRFLOW-2781
URL: https://issues.apache.org/jira/browse/AIRFLOW-2781
Project: Apache Airflow
Issue Type: Bug
Components: configuration
Affects Versions: 1.9.0
Reporter: Xiaodong DENG
Hi, the documentation or information about SLA is quite limited.
I'm trying to set up SLA for my DAGs, but it's not working as I
expected/assumed.
One example is
{code:java}
//
https://github.com/DFStoneburner/airflow-sla-examples/blob/master/basic_sla.py
t1 = BashOperator(
task_id='timeout',
# Set our task up with a 10 second SLA
sla=timedelta(seconds=10),
# Sleep 15 seconds to guarantee we miss the SLA
bash_command='sleep 15',
dag=dag
)
{code}
Actually I don't see any record in "*Browse -> SLA Misses*" even if this DAG
can run on schedule.
For my scenario, let's say my schedule interval of the DAG is `_*0 3 * * **_`
(3AM in the morning),
* if I expect my task is succeeded by 3:30AM, I set
`*sla=timedelta(minutes=30)*`.
* if I expect my task is succeeded by 3AM or earlier, I set
`*sla=timedelta(seconds=0)*`.
But seems it's not working as I assumed.
May any one kindly advise on this? Thanks!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)