Skip to content

Fix 20251 concurrency lease retry#20796

Draft
harshang03 wants to merge 3 commits intoPrefectHQ:mainfrom
harshang03:fix-20251-concurrency-lease-retry
Draft

Fix 20251 concurrency lease retry#20796
harshang03 wants to merge 3 commits intoPrefectHQ:mainfrom
harshang03:fix-20251-concurrency-lease-retry

Conversation

@harshang03
Copy link

This PR prevents concurrency lease renewal from crashing flows stuck in AwaitingRetry by keeping deployment leases through retry transitions and treating 404/410 renewals as a clean “lease lost” signal. The client now exposes try_renew_concurrency_lease helpers, the lease renewal loop exits gracefully when a lease is gone, and server release logic skips AwaitingRetry transitions to avoid dropping the lease mid-retry.
ISSUE : #20251

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
    • If no issue exists and your change is not a small fix, please create an issue first.
  • If this pull request adds new functionality, it includes unit tests that cover the changes
  • If this pull request removes docs files, it includes redirect settings in mint.json.
  • If this pull request adds functions or classes, it includes helpful docstrings.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant