ferruzzi commented on code in PR #37839:
URL: https://github.com/apache/airflow/pull/37839#discussion_r1516652093
##########
airflow/providers/amazon/aws/executors/ecs/ecs_executor.py:
##########
@@ -302,14 +302,15 @@ def __handle_failed_task(self, task_arn: str, reason:
str):
self.__class__.MAX_RUN_TASK_ATTEMPTS,
task_arn,
)
- self.active_workers.increment_failure_count(task_key)
+ if increment:
+ self.active_workers.increment_failure_count(task_key)
Review Comment:
I had a chat with Syed and he has a better solution for this. I'm going to
cancel this PR and he will submit his solution shortly.
--
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]