dv-gorasiya opened a new pull request, #61373:
URL: https://github.com/apache/airflow/pull/61373

   **Description**
   Restores the functionality of the `wait_policy` parameter in 
`EmrCreateJobFlowOperator`.
   Previously, `wait_policy` was deprecated and ignored in favor of a hardcoded 
'running' state check when `wait_for_completion` was True.
   This change allows users to explicitly specify policies like 
`WAIT_FOR_STEPS_COMPLETION` (to wait for cluster termination) while maintaining 
backward compatibility (implied `wait_for_completion=True`).
   
   **Related Issue**
   Closes #61180
   
   **Tests**
   Added `test_execute_with_wait_policy` to verify the correct waiter is used.
   Removed `test_wait_policy_deprecation_warning` as the parameter is no longer 
deprecated.


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