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

Right way to use pool worker option in sidekiq job #6

Closed
bagiojm opened this issue Jun 1, 2023 · 1 comment
Closed

Right way to use pool worker option in sidekiq job #6

bagiojm opened this issue Jun 1, 2023 · 1 comment

Comments

@bagiojm
Copy link

bagiojm commented Jun 1, 2023

I am trying to invoke a sidekiq job from rails, I have tried passing "pool" worker option for sidekiq job, but somehow perform_async ignores this option and passes the job to default config sidekiq has been initialised with..

REDIS = ConnectionPool.new { Redis.new(url: '', namespace: '') }
Sidekiq::MyWorker.set("pool" => REDIS).perform_async()

Am I doing this right way?

@benngarcia
Copy link
Owner

Unfortunately ActiveJob doesn't support a couple of sidekiq options. pool is one of those options.

This is the second issue raised for this library regarding ActiveJob not passing sidekiq options. I'm planning on seeing if I can add a feature flag on the library to pass additional options through to sidekiq, though feel free to look into it yourself in the meantime 👍

@benngarcia benngarcia closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2024
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