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

Make --workers option not experimental #1069

Merged
merged 1 commit into from
Jul 20, 2022
Merged

Make --workers option not experimental #1069

merged 1 commit into from
Jul 20, 2022

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Jul 19, 2022

Motivation

Currently if no --workers option is pass, we'll fallback to 1 by default.

This is a problem as we can't use parallel mechanism to auto-detect how many processors to use. By passing nil by default Tapioca will use has many processors as available by default.

This means making the parallel execution not experimental anymore (as it becomes the default behavior) but people can still disable it manually by passing --workers 1.

@Morriar Morriar added the enhancement New feature or request label Jul 19, 2022
@Morriar Morriar self-assigned this Jul 19, 2022
@Morriar Morriar requested a review from a team as a code owner July 19, 2022 21:17
README.md Outdated
@@ -156,8 +156,7 @@ Options:
# Default: true
[--exported-gem-rbis], [--no-exported-gem-rbis] # Include RBIs found in the `rbi/` directory of the gem
# Default: true
-w, [--workers=N] # EXPERIMENTAL: Number of parallel workers to use when generating RBIs
# Default: 1
-w, [--workers=N] # Number of parallel workers to use when generating RBIs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we explain that by default it will use logic from the parallel gem to detect how many processors to use? I'm guessing some people will wrongly assume the default is 1 worker?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added (default: auto) in the description, lmkwys 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you ❤️

@Morriar Morriar merged commit 121a3a7 into main Jul 20, 2022
@Morriar Morriar deleted the at-workers branch July 20, 2022 14:51
@shopify-shipit shopify-shipit bot temporarily deployed to production August 31, 2022 14:40 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants