ferruzzi opened a new issue, #44000:
URL: https://github.com/apache/airflow/issues/44000

   A callback can be any Callable, and the DeadlineAlert object may optionally 
have a callback_kwargs to pass to it.
   
   A callback maybe a Notifier:
   ```
   callback=send_smtp_notification(
               from_email="[email protected]",
               to="[email protected]",
               subject="[Error] The dag {{ dag.dag_id }} failed",
               html_content="debug logs",
           )
   ```
   
   A callback may be a partial():
   ```
   callback=functools.partial(my_custom_callback, arg1="Something went wrong!", 
arg2="Error Code: 123"),
   ```
   
   A callback may be a Callable (with or without a callback_kwargs):
   ```
   callback=my_custom_callback,
   callback_kwargs = {"arg1": "Something went wrong!", "arg2": "Error Code: 
123"}
   ```
   
   
   Implement the interface which will allow for these potential usecases and 
implement the first built-in callback, which will simply log the miss.


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

Reply via email to