You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Roster (Jira)" <ji...@apache.org> on 2020/03/10 15:13:00 UTC

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

    [ https://issues.apache.org/jira/browse/AIRFLOW-6671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056041#comment-17056041 ] 

Roster commented on AIRFLOW-6671:
---------------------------------

Can you provide example to reproduce?
You didn't mention in your explanation about the sla param in your operator.

If you can provide an example that I can run it will be easier to assist.

> 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)