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

Issue with parallelize #84

Open
jclusso opened this issue Aug 9, 2021 · 2 comments
Open

Issue with parallelize #84

jclusso opened this issue Aug 9, 2021 · 2 comments

Comments

@jclusso
Copy link

jclusso commented Aug 9, 2021

If I run my test using m I get this error when I have parallelize(workers: :number_of_processors) in my test. If I run my test with bin/rails test I have no issues.

/Users/jarrett/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/drb/drb.rb:1795:in current_server': DRb::DRbServerNotFound (DRb::DRbServerNotFound)`

@jclusso jclusso changed the title Issue with Issue with parallelize Aug 9, 2021
@zamith
Copy link
Collaborator

zamith commented Jun 1, 2022

Is this issue still happening?

@wheresrobert
Copy link

wheresrobert commented Jun 2, 2022

I just so happened to try to run a test through m today and it does still happen.

The test does run and reports status correctly. It is just noisy since it starts up too many workers.

You can get around it by setting PARALLEL_WORKERS=1 in your command line since that skips out on parallel workers completely.

I haven't tried using m to run an entire directory, so this problem might only really occur when running individual tests.

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

No branches or pull requests

3 participants