ammarchalifah-bolt opened a new issue, #37243:
URL: https://github.com/apache/airflow/issues/37243

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   2.7.3
   
   ### What happened?
   
   I have a use case where I want to pass multiple callbacks as a list to DAG's 
`default_args` dictionary. However, this list of callbacks is not supported. 
   ```
   Traceback (most recent call last):
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py",
 line 1702, in _run_finished_callback
       callback(context)
     File 
"/home/airflow/.local/lib/python3.9/site-packages/datahub_airflow_plugin/datahub_plugin_v22.py",
 line 238, in custom_on_failure_callback
       on_failure_callback(context)
   TypeError: 'list' object is not callable
   ```
   
   I thought list of callbacks is supported, could we also support this in 
`default_args`?
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Set a DAG with lists of callbacks passed in `default_args`
   
   ### Operating System
   
   linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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