Deployment tool for Celery
Before calling celerydeploy provide a deployment path and a list of target hosts. celerydeploy will try to find CELERY_DEPLOY_PATH variable in Celery configuration file. Target hosts can be provided with CELERY_DEPLOY_HOSTS variable or using --hosts command line option. Third-party libraries can be installed by listing them in PIP_PACKAGES variable.
Setup Celery on localhost and example.com:
$ celerydeploy --hosts example.com,localhost worker.setup
Start, stop or restart workers:
$ celerydeploy worker.start $ celerydeploy worker.stop $ celerydeploy worker.restart
Update task modules and restart workers:
$ celerydeploy worker.deploy worker.restart
Get a list of possible commands:
$ celerydeploy --list
celerydeploy is a fabric script and can be embedded into other deployment scripts.
To install celerydeploy, simply:
$ pip install celerydeploy