How to start a Celery worker from a script/module __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)