Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround thread safety issue by limiting worker count #5492

Conversation

jeffwidman
Copy link
Member

@jeffwidman jeffwidman commented Aug 8, 2022

The original intent of this code was to workaround a thread safety
issue. However, according to the poetry maintainer, the more "future
proof" workaround is to limit the worker count rather than disable the
new installer
.

The underlying root issue is supposedly resolved in the upcoming 1.2
release of poetry
.

But until then let's use the cleaner workaround.

@jeffwidman jeffwidman requested a review from a team as a code owner August 8, 2022 04:51
@jeffwidman jeffwidman force-pushed the handle-thread-safety-issue-by-limiting-workers branch from b6f3f20 to 17cdb2d Compare August 8, 2022 04:54
@jeffwidman
Copy link
Member Author

Oof, the maintainer suggested this workaround, but unfortunately the setting isn't available til 1.2, by which time the underlying root cause should be fixed... more details here: python-poetry/poetry#3010 (comment)

@jeffwidman jeffwidman marked this pull request as draft August 8, 2022 05:31
The original intent of this code was to workaround a thread safety
issue. However, according to the `poetry` maintainer, the more "future
proof" workaround is [to limit the worker count rather than disable the
new installer](python-poetry/poetry#3010 (comment)).

The underlying root issue is supposedly resolved in [the upcoming `1.2`
release of `poetry`](python-poetry/poetry#3010 (comment)).

But until then let's use the cleaner workaround.
@jeffwidman jeffwidman force-pushed the handle-thread-safety-issue-by-limiting-workers branch from 17cdb2d to fd1d6bc Compare September 13, 2022 06:34
@jeffwidman
Copy link
Member Author

Closing in favor of #5838

@jeffwidman jeffwidman closed this Oct 6, 2022
@jeffwidman jeffwidman deleted the handle-thread-safety-issue-by-limiting-workers branch October 6, 2022 05:38
jeffwidman added a commit that referenced this pull request Oct 7, 2022
This was added in
#3459 to workaround
the underlying issue of
python-poetry/poetry#3010.

However, `poetry` `1.2` fixed the underlying issue, and we are now on `poetry` `1.2.1` so we can remove this workaround.

See also:
* python-poetry/poetry#3010 (comment)
* python-poetry/poetry#3010 (comment)
* python-poetry/poetry#3010 (comment)
* #5492
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