Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Possible to temporarily specify a different redis sever? #689
The fix for issue #524 allows you to use a simple string for the Sidekiq worker - allowing you to push a job for a worker class not in your current codebase.
I'm wondering how to use this to push to a Sidekiq queue from another app with its own Sidekiq installation & Redis connection?
App1 wants to push a job onto App2's queue. This would normally be possible as a result of fix for issue #524 , but since it has its own separate Sidekiq instance, we've already done a
Is there some way to temporarily specify a new redis server and then push a job?
e.g., from App1:
redis_connection2 = Redis.new url: 'RedisConnection2' Sidekiq::Client.with(redis_connection2).push( job_for_app2_worker )
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Thanks for the quick reply!
Just to clarify - the best way then would be to essentially copy the code
I'm assuming that the format for keys & job hashes that Sidekiq will use is
Thanks for your work on Sidekiq.
On Thu, Feb 7, 2013 at 1:40 PM, Mike Perham firstname.lastname@example.org: