o-nikolas commented on code in PR #75834:
URL: https://github.com/apache/airflow/pull/75834#discussion_r4619574347
##########
providers/amazon/src/airflow/providers/amazon/aws/executors/ecs/ecs_executor.py:
##########
@@ -225,6 +226,17 @@ def _process_workloads(self, workload_items:
Sequence[workloads.All]) -> None:
self.execute_async(key=key, command=command, queue=None)
self.running.add(key)
+ elif AIRFLOW_V_3_3_PLUS and isinstance(workload,
workloads.TestConnection):
Review Comment:
When the reaper fails a stale test it calls `fail_connection_test`, and the
base version only clears `executor_queues` and `running`. If the workload is
still sitting in `pending_workloads` (RunTask being retried with backoff, or
throttled), we'll still launch a container later for a test that's already
FAILED. The Execution API will just 409 it, so it's only wasted compute, but
LocalExecutor overrides `fail_connection_test` for this reason. Do you think a
small override here (and in Batch/Lambda) that drops pending entries for that
key is worth it?
--
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]