You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Allen Lee (Jira)" <ji...@apache.org> on 2020/01/29 02:11:00 UTC

[jira] [Created] (AIRFLOW-6671) Airflow sla_miss_callback function not triggering

Allen Lee created AIRFLOW-6671:
----------------------------------

             Summary: 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


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)