Repository navigation
Conversation
ECS reattachment only finds running tasks, so a retry after the remote task finishes launches the workload again. Persisting the exact task ARN lets retries recognize completed work. Generated-by: GitHub Copilot CLI (GPT-5.6 Sol) Signed-off-by: 1fanwang <[email protected]>
The Amazon provider compatibility matrix includes Airflow releases before task_state_store exists. Keep those releases on the intentional non-durable fallback while retaining their existing behavior coverage. Generated-by: GitHub Copilot CLI (GPT-5.6 Sol) Signed-off-by: 1fanwang <[email protected]>
Main now builds the AwsLogsHook used after deferral with the operator's verify and botocore config. This branch moved that lookup into _get_last_log_message, so the helper now passes those settings too. Signed-off-by: 1fanwang <[email protected]>
|
Hello @1fanwang - thank you for your contributions to Apache Airflow! The Airflow community has introduced a limit of 5 open pull requests at a time for contributors without write access to the repository. You currently have 34 open pull requests, so - as a one-time step of introducing the limit - we closed the ones where maintainers have not engaged yet:
These pull requests stay open because maintainers are already engaged in them - they count towards your limit:
This is not a judgement of you or of your changes. We never told contributors before that opening many pull requests at once was a problem, so there is nothing to feel bad about - and nothing is lost: your branches, commits and the review history stay where they are. What we ask you to do is to make your first prioritization decision: choose which of the pull requests above matter most to you, and reopen them (up to 5 open at a time, including the ones still open) with the "Reopen pull request" button or While your pull requests are waiting for review, the most valuable thing you can do is help in other ways - reviewing other contributors' pull requests, helping with issues, and taking part in the discussions on the devlist and Slack. Why we introduced the limit, what it means for you and how to reopen or restore a pull request is explained in https://github.com/apache/airflow/blob/main/contributing-docs/32_open_pull_request_limit.rst. Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting |
An Airflow retry can launch an ECS workload twice if its first ECS task has already succeeded. Reattachment searches running tasks, so it misses the completed one.
On Airflow 3.3+, non-deferrable execution now saves the task ARN before polling. A retry checks that task directly, resumes it if active, or recovers its successful result. Missing and failed tasks resubmit. Existing terminal checks still handle startup failures, nonzero exits and skip codes.
Recovery defaults on;
durable=Falsedisables it. Earlier Airflow versions keep non-durable execution. Deferrable execution keeps its existing path, and no-wait execution still skips polling. Logging, cancellation and XCom use the existing operator hooks.Testing
The committed regression drives the real operator with a local ECS client and in-memory task state, not live AWS. The stored task has completed successfully; a retry must not submit again.
That test imports helpers added here, so it cannot run on upstream/main. The script below runs the same retry through the public operator on both refs, with only the ECS client and task state stubbed.
Recorded commands and raw logs
Before, on upstream/main (
git checkout a99354726cec44718391a6b42172462f6c72046d):After, on this branch (
git checkout 8ca04626e7df22cb16095ce29bfc5e77a40e4599), the same command:The committed regression on this branch:
The recorded pre-3.3 simulation exercised the fallback without task-state access; recovery-only cases were skipped. This does not establish live ECS behavior or validate an actual older Airflow installation.
Was generative AI tooling used to co-author this PR?
Generated-by: GitHub Copilot CLI (GPT-6 Astra) following the guidelines