Skip to content

Block retry_policy argument for StubOperator#68551

Merged
jason810496 merged 2 commits into
apache:mainfrom
jason810496:fix/lang-sdk/block-retry-policy-arg
Jun 15, 2026
Merged

Block retry_policy argument for StubOperator#68551
jason810496 merged 2 commits into
apache:mainfrom
jason810496:fix/lang-sdk/block-retry-policy-arg

Conversation

@jason810496

Copy link
Copy Markdown
Member

Why

While reading through how the retries setup for Task Execution. I found that we should block the new retry_policy argument in the first place for StubOperator.

Unless all the lang-sdk runtime implement the handling RetryPolicy (but that will not happen in the near future) so fail fast at authoring level.


Was generative AI tooling used to co-author this PR?

@jason810496 jason810496 added AIP-108: Coordinator Change this to an 'area:' label after AIP acceptance. and removed area:providers provider:standard labels Jun 15, 2026
@jason810496 jason810496 self-assigned this Jun 15, 2026
@jason810496 jason810496 added this to the Airflow 3.3.0 milestone Jun 15, 2026
@jason810496 jason810496 requested a review from uranusjr June 15, 2026 02:46
Comment thread providers/standard/src/airflow/providers/standard/decorators/stub.py Outdated
Comment thread providers/standard/tests/unit/standard/decorators/test_stub.py
@jason810496 jason810496 force-pushed the fix/lang-sdk/block-retry-policy-arg branch from 264bc84 to 999e9c9 Compare June 15, 2026 05:26
@jason810496 jason810496 merged commit 452fed8 into apache:main Jun 15, 2026
145 checks passed
pgagnon pushed a commit to pgagnon/airflow that referenced this pull request Jun 15, 2026
* Block retry_policy argument for StubOperator

* Guard retry_policy check for Airflow < 3.3 compatibility
imrichardwu pushed a commit to imrichardwu/airflow that referenced this pull request Jun 16, 2026
* Block retry_policy argument for StubOperator

* Guard retry_policy check for Airflow < 3.3 compatibility
dingo4dev pushed a commit to dingo4dev/airflow that referenced this pull request Jun 16, 2026
* Block retry_policy argument for StubOperator

* Guard retry_policy check for Airflow < 3.3 compatibility
RulerChen pushed a commit to RulerChen/airflow that referenced this pull request Jun 16, 2026
* Block retry_policy argument for StubOperator

* Guard retry_policy check for Airflow < 3.3 compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-108: Coordinator Change this to an 'area:' label after AIP acceptance.

Development

Successfully merging this pull request may close these issues.

3 participants