[
https://issues.apache.org/jira/browse/AIRFLOW-6671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Allen Lee updated AIRFLOW-6671:
-------------------------------
Description:
I have been trying to get a slack message callback to trigger on SLA misses.
I've noticed that:
# sla_misses get registered succesfully in the Airflow web UI at slamiss/list/
# *on_failure_callback* works succesfully
However, the *sla_miss_callback* function itself will never get triggered.
What I've tried:
* Different combinations adding 'sla' and 'sla_miss_callback' at the
default_args level, the dag level, and the task level
* Checking logs on our scheduler and workers for SLA related messages
[https://github.com/apache/airflow/blob/master/airflow/jobs/scheduler_job.py#L416],
but we haven't seen anything
* The slack message callback function works if called from any other
basic task or function
was:
I have been trying to get a slack message callback to trigger on SLA misses.
I've noticed that:
# sla_misses get registered succesfully in the Airflow web UI at slamiss/list/
# *on_failure_callback* works succesfully
However, the *sla_miss_callback* function itself will never get triggered.
What I've tried:
* Different combinations adding 'sla' and 'sla_miss_callback' at the
default_args level, the dag level, and the task level
* Checking logs on our scheduler and workers for SLA related messages
[https://github.com/apache/airflow/blob/master/airflow/jobs/scheduler_job.py#L416],
but we haven't seen anything
* The slack message callback function works if called from any other
basic task or function
> Airflow sla_miss_callback function not triggering
> -------------------------------------------------
>
> Key: AIRFLOW-6671
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6671
> Project: Apache Airflow
> Issue Type: Bug
> Components: scheduler
> Affects Versions: 1.10.2
> Reporter: Allen Lee
> Priority: Major
> Labels: sla, sla_miss_callback, slack
>
> I have been trying to get a slack message callback to trigger on SLA misses.
> I've noticed that:
> # sla_misses get registered succesfully in the Airflow web UI at
> slamiss/list/
> # *on_failure_callback* works succesfully
> However, the *sla_miss_callback* function itself will never get triggered.
> What I've tried:
> * Different combinations adding 'sla' and 'sla_miss_callback' at the
> default_args level, the dag level, and the task level
> * Checking logs on our scheduler and workers for SLA related messages
>
> [https://github.com/apache/airflow/blob/master/airflow/jobs/scheduler_job.py#L416],
> but we haven't seen anything
> * The slack message callback function works if called from any other
> basic task or function
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)