Skip to content

Guard cached get_offers with an execution lock#3738

Merged
r4victor merged 1 commit intomasterfrom
pr_concurrent_getting_offers
Apr 2, 2026
Merged

Guard cached get_offers with an execution lock#3738
r4victor merged 1 commit intomasterfrom
pr_concurrent_getting_offers

Conversation

@r4victor
Copy link
Copy Markdown
Collaborator

@r4victor r4victor commented Apr 2, 2026

The PR guards _get_all_offers_with_availability_cached() computation with a lock so that concurrent requests do not re-compute the offers but block and wait for the first caller to finish. This fixes a problem with concurrent run/fleet apply re-calculating offers when the offers cached is cold.

@r4victor r4victor merged commit 869754b into master Apr 2, 2026
28 checks passed
@r4victor r4victor deleted the pr_concurrent_getting_offers branch April 2, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant