Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Don't use try_acquire alongside spawned task #2165

Merged
merged 1 commit into from
Aug 19, 2020
Merged

Don't use try_acquire alongside spawned task #2165

merged 1 commit into from
Aug 19, 2020

Conversation

jgrund
Copy link
Member

@jgrund jgrund commented Aug 18, 2020

We're hitting an issue that looks similar to
launchbadge/sqlx#622

I was able to work around it by disabling fairness, but we can just
avoid the lookup entirely if active workers is >= the pool size.

Signed-off-by: Joe Grund jgrund@whamcloud.io


This change is Reviewable

We're hitting an issue that looks similar to
launchbadge/sqlx#622

I was able to work around it by disabling fairness, but we can just
avoid the lookup entirely if active workers is >= the pool size.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
@jgrund jgrund added the bug label Aug 18, 2020
@jgrund jgrund self-assigned this Aug 18, 2020
@jgrund jgrund requested a review from a team August 18, 2020 18:44
@jgrund jgrund requested a review from a team August 18, 2020 18:45
@jgrund jgrund merged commit 156972a into master Aug 19, 2020
@jgrund jgrund deleted the skip-if-full branch August 19, 2020 02:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants