ibzx opened a new issue, #40966: URL: https://github.com/apache/airflow/issues/40966
### Apache Airflow version 2.9.3 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? When setting global ``` AIRFLOW__OPERATORS__DEFAULT_DEFERRABLE =true EmrCreateJobFlowOperator(wait_for_completion=false) ``` The operator should adds a deferral trigger to wait for Jobflow create completion status. ### What you think should happen instead? Since we did not ask to wait for completion, the deferrable argument should do nothing. The deferrable argument should only start a trigger when `wait_for_completion=true` ### How to reproduce See deferrable code here: https://github.com/apache/airflow/blob/460d2095cda6674dda4860d605573b8f1cec7de5/airflow/providers/amazon/aws/operators/emr.py#L827-L849 Sample code ``` EmrCreateJobFlowOperator( task_id="cluster_m5", wait_for_completion=false, deferrable=true ) ``` ### Operating System Mac OS 14.5 (23F79) ### Versions of Apache Airflow Providers _No response_ ### Deployment Astronomer ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [X] 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]
