tresbailey / openshift-celery-cartridge

Cartridge to Expose Celery as a Daemon on OpenShift
6 stars 7 forks source link

Did this emerge from work-in-progress? #2

Open edmcdonagh opened 9 years ago

edmcdonagh commented 9 years ago

@tresbailey, I'm trying to make use of this cartridge to use with django on OpenShift and RabbitMQ on CloudAMQP.

If I Import the manifest, I get the following error (I've added the line breaks):

Failed to execute: 'control start' for /var/lib/openshift/5...9/celeryd Traceback (most 
recent call last): File "usr/celeryd-multi", line 8, in <module> from pkg_resources
import load_entry_point File 
"/var/lib/openshift/5...9/python/virtenv/lib/python2.7/site-packages/pkg_resources.py", 
line 3011, in <module> parse_requirements(__requires__), Environment() File
"/var/lib/openshift/5...9/python/virtenv/lib/python2.7/site-packages/pkg_resources.py", 
line 626, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound:
celery==3.0.24

I've added the following to my django settings file:

OPENSHIFT_CELERY_BROKER_TRANS = 'amqp'
OPENSHIFT_CELERY_BROKER_URL = 'o...q:L...B@lemur.cloudamqp.com/o...m'
OPENSHIFT_CELERY_IMPORTS  = 'openremproject'

Is the problem that these should be declared somewhere else, or is there something else I haven't done. Or is it just not ready for use!

tresbailey commented 9 years ago

Hi, sorry for the late response. I have not been keeping up with this for quite awhile, so I'm not altogether sure if it is ready for use. At the time, I was working with what is now an outdated version of Openshift and i believe in my last iteration, I had some issues with it. I would say it is not ready for use at this time. I will try to take a look at the code next week, to see if I can make it run again, but I apologize for the confusion.

edmcdonagh commented 9 years ago

Thanks. The initial error there is just because the code was fixed on a particular version of celery. I forked to remove the specific version, but couldn't work out what it was supposed to be doing!

I did run Celery from the shell, but it wouldn't connect to the cloudampq service :(