I\'ve define a Celery app in a module, and now I want to start the worker from the same module in its __main__, i.e. by running the module with
Celery
__main__
using app.worker_main method (v3.1.12):
± cat start_celery.py #!/usr/bin/python from myapp import app if __name__ == "__main__": argv = [ 'worker', '--loglevel=DEBUG', ] app.worker_main(argv)