Repository navigation
Support connection-test workloads in the AWS executors - #75834
anishgirianish wants to merge 3 commits into
Conversation
0a722cb to
b2841d1
Compare
| if AIRFLOW_V_3_4_PLUS: | ||
| supported_workload_types: frozenset[WorkloadType] = frozenset( | ||
| {WorkloadType.EXECUTE_TASK, WorkloadType.EXECUTE_CALLBACK} | ||
| {WorkloadType.EXECUTE_TASK, WorkloadType.EXECUTE_CALLBACK, WorkloadType.TEST_CONNECTION} |
There was a problem hiding this comment.
Did you test it end to end on ECS and Batch? By default the reaper fails a connection test still queued after 90 seconds (timeout + grace). Starting a Fargate task, or a Batch job when the compute environment is scaled down to 0, can take longer than that, so the test would fail even though the connection works. Should we at least document it?
| self.execute_async(key=key, command=command, queue=None) | ||
| self.running.add(key) | ||
|
|
||
| elif AIRFLOW_V_3_3_PLUS and isinstance(workload, workloads.TestConnection): |
There was a problem hiding this 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?
Adds
TEST_CONNECTIONworkload support to the ECS, Batch and Lambda executors so async connection tests (#62343) can run on them.Prerequisite for #68113.
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Fable 5.1) following the guidelines
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.