Open deepakjindal90 opened 3 years ago
sla_miss_callback functionality should be like below
if utils.check_dict_key( dag_params, "on_success_callback_name" ) and utils.check_dict_key(dag_params, "on_success_callback_file"): dag_params["on_success_callback"]: Callable = utils.get_python_callable( dag_params["on_success_callback_name"], dag_params["on_success_callback_file"], ) dag_params["default_args"]["on_success_callback"]: Callable = utils.get_python_callable( dag_params["on_success_callback_name"], dag_params["on_success_callback_file"], )
Try passing sla_miss_callback on the dag level, this seems to be working in my case
sla_miss_callback
"dag_id": sla_miss_callback: module.file.func_name default_args: owner: 'airflow' ...
sla_miss_callback functionality should be like below