-
Notifications
You must be signed in to change notification settings - Fork 130
Compatibility with Resque implementations ? #138
Comments
Did anyone find out if Pyres is compatible? |
@louisameline and @bluegod i guess the answer depends on the definition of compatible. Can you enqueue jobs with another implementation and pop them off with pyres? If the json that is push is the same, then yes. For instance, a pyres job looks for a json payload that has the following keys: |
Thanks for your answer. Ok, I see that It gets more complex when you deal with job failures though. Coffee-resque has this payload similar to Resque's one (https://github.com/resque/resque/blob/master/lib/resque/failure/redis.rb) that makes its errors seamlessly monitorable in Resque-web too :
Have you done the same for Pyres ? |
I agree @louisameline that we should unambiguously document the level of compatibility between pyres and resque. I am about to wrap some python code in a worker job of some kind, and would prefer to use pyres, but want to know "Well is it a clone of resque, or not a clone of resque?" |
@louisameline sorry about the long delay, i've not been seeing github notifications in my gmail. Pyres follows that same failure json. There may be some slight differences because it's not been a priority to track resque in the last few years. |
Hello again ! Thank you, I am eventually implementing Pyres. Unfortunately with difficulty because the documentation falls short of thorough and explained examples for python total newbies like me. Anyway, I am trying to send a job from Python for Node to pick it up. I have created a Thank you. |
Looking at the source, I found a Next issue : the other way around, when enqueing from Node to Python. From the payload, Pyres seems to expect a class property in the form If pyres_worker and pyres_manager need the location/package of the class, could we pass it as an
Thanks |
I confirm that everything works well when I package my python worker class under the name "workers" and give a "workers.parse" class when I enqueue in Coffee-Resque (Node). However I haven't tested to run ResqueWeb yet. For newbies like me : to package my #!/usr/bin/python
from distutils.core import setup
setup(name='workers',
version='1.0.0',
py_modules=['workers'],
) |
Hello, a quick question :
I am currently using Resque implementations in PHP (php-resque) and Node (coffee-resque) to queue jobs between different parts of my application and they work fine together. I need to do the same in Python now, is Pyres compatible ? If yes, is it compatible out of the box or are there any configuration pitfalls that I should be aware of ?
It seems to be compatible but it's not clearly stated in the doc and Pyres is not listed in the "Other implementations" section of the Resque project, so I ask beforehand :)
Thanks for the good work.
The text was updated successfully, but these errors were encountered: