P
P
Ph-s2017-02-19 00:32:28
Ruby on Rails
Ph-s, 2017-02-19 00:32:28

How to run a job from a queue, put there from another application?

In other words, how to make a job specified from one application (Rails) run in another application, in another language?
I use resque, but at this moment it’s not scary to switch to the same sidekiq,
it should be possible, but I didn’t find how.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2017-02-19
@Ph-s

Job is a JSON-serialized set of arguments and a string name of the handler class.
In any convenient language, connect to redis, pull out the entry from the acc. list (the structure of the redis data is well described in the docs for both resque and sidekiq) based on the parameters and the handler class, you do what you need.
https://github.com/akira/exq

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question