You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EmrContainerOperator in Async mode doesn't respect default "infinite" polling number #40483
EMR EKS job timedout unexpectedly with error (EMRContainerOperator) when used in deferred mode:
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/providers/amazon/aws/utils/waiter_with_logging.py", line 133, in async_wait
raise AirflowException("Waiter error: max attempts reached")
airflow.exceptions.AirflowException: Waiter error: max attempts reached
While not providing any max_attempts
What you think should happen instead
The job should poll until it becomes FAILD or SUCCESSFUL
How to reproduce
Trigger long running job (over 5 hrs) using EMRContainerOperator in Async/Deferred mode
Anything else
I believe it's caused by the defaults defined here:
Which outlines:
max_polling_attempts (int | None) – Maximum number of times to wait for the job run to finish. Defaults to None, which will poll until the job is not in a pending, submitted, or running state.
Which doesn't seem to be the case and hence raising this as an Issue.
Hi @STAR-173 - no I haven't started working on this yet, would be only able to pick this up Tuesday/Wednesday, so if you can work on this earlier, feel free to pick it up. Thanks! :)
Sorry, probably I should add follow up comment, that for time being I ditched the idea of Async operator, as I also hit that problem: #36090
So for now I moved back to Sync approach, and noticed it works even better as it prints out logs, which often works well. So won't contribute for the time being :(
Activity
STAR-173 commentedon Jun 30, 2024
Hey @akomisarek , are you working on this issue or is it open for PR ?
akomisarek commentedon Jun 30, 2024
Hi @STAR-173 - no I haven't started working on this yet, would be only able to pick this up Tuesday/Wednesday, so if you can work on this earlier, feel free to pick it up. Thanks! :)
akomisarek commentedon Jul 24, 2024
Sorry, probably I should add follow up comment, that for time being I ditched the idea of Async operator, as I also hit that problem:
#36090
So for now I moved back to Sync approach, and noticed it works even better as it prints out logs, which often works well. So won't contribute for the time being :(