doiken opened a new pull request, #30523:
URL: https://github.com/apache/airflow/pull/30523
In the following code, t1 neither succeeds nor sla misses.
```python
from datetime import timedelta
from time import sleep
import pendulum
from airflow import DAG
from airflow.exceptions import AirflowSkipException, AirflowFailException
from airflow.operators.python import PythonOperator
from airflow.utils.dates import days_ago
def f():
if pendulum.now().minute % 2 == 0:
raise AirflowSkipException("skip")
else:
sleep(80)
raise AirflowFailException("fail")
with DAG(
dag_id="example_sla",
schedule_interval="* * * * *",
start_date=days_ago(2),
catchup=False,
) as dag:
PythonOperator(task_id="t1", python_callable=f,
sla=timedelta(seconds=70))
```
In this PR, we would like to correct only the following behavior
- asis
- t1_1(state=other than success and skip): sla checks skipped by skipped
t1_2
- t1_2(state=skipped)
- tobe
- t1_1(state=other than success and skip): sla checked
- t1_2(state=skipped)
I believe the state=skipped behavior expected in the following PR is
preserved.
https://github.com/apache/airflow/pull/3370
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]