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

Sidekiq integration #314

Closed
dortin42 opened this issue Dec 3, 2021 · 3 comments
Closed

Sidekiq integration #314

dortin42 opened this issue Dec 3, 2021 · 3 comments

Comments

@dortin42
Copy link

dortin42 commented Dec 3, 2021

Hi, I'm running some tests with ActiveJob, Rspec, Parallel and Sidekiq of course, putting jobs inside Parallel with any in_processes value than 0, makes jobs not to queue, but as I said, if I set in_processes = 0, all jobs are inqueued. Is this a Parallel's bug?

@grosser
Copy link
Owner

grosser commented Dec 3, 2021

I'd assume they get queued in a separate thread that then gets killed ... need to configure the backend to be something persistent like redis for thisto work, or use in_threads: X

@grosser grosser closed this as completed Dec 3, 2021
@dortin42
Copy link
Author

dortin42 commented Dec 3, 2021

@grosser but sidekiq uses redis by default... Do you mean an extra config? Maybe do you have some links about how to do that? I can't find anything

@grosser
Copy link
Owner

grosser commented Dec 3, 2021

if it uses redis then that should work
reproduce by doing fork { enqueue } and if that does not work then open an issue with sidekiq
basically I don't think parallel is at faul since it just forks so bug must be somewhere else
... might be something like that the enqueue does not directly write to redis but gets sent into some background thread and then that thread is killed, but no idea

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

2 participants