airflow
airflow copied to clipboard
fixing emr-operator-deferral-logic
Summary of Changes
This PR addresses issue #40966 by modifying the logic in the EmrCreateJobFlowOperator
to ensure that the deferrable
argument only activates the deferral trigger when wait_for_completion
is also set to True
. Previously, the deferral trigger would be added regardless of the wait_for_completion
setting, leading to unintended behavior.
Changes Made:
- Updated the condition for deferring to check both
deferrable
andwait_for_completion
. - Adjusted the condition for synchronous waiting to occur only when
wait_for_completion=True
anddeferrable=False
.
Please review the changes, and let me know if further adjustments are needed.