mirror of
https://github.com/wassname/openshift-celery-cartridge.git
synced 2026-06-27 16:10:05 +08:00
37b15a9d1920c4c7001e49b6938a660d4e0ae10f
openshift-celery-cartridge
Cartridge to Expose Celery as a Daemon on OpenShift.
Status
This work on unscaled applications but doesn't work as a gearin a scaled application. Further development can combine this with a python cartridge so it can operate in it's own gears.
Configuration
OPENSHIFT_CELERY_CONFIGThis is the name of your config file, which by default is$OPENSHIFT_CELERY_DIR/conf.d/celeryconfig.pybut you can copy this to$OPENSHIFT_DATA_DIR/config/celeryconfig.pyand edit your own copy.
To install
rhc cartridge-add https://raw.github.com/wassname/openshift-celery-cartridge/master/metadata/manifest.yml -a "appname"
Any log output will be generated to ${OPENSHIFT_HOMEDIR}logs/celery_log.txt and will be viewable with the rhc tail "appname" command
This was tested using:
celery==3.1.11
redis==2.10.3
To manage
$ rhc cartridge-status celeryd -a "yourapp"
Description
Languages
Shell
43.9%
Ruby
31.7%
Python
24.4%