Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting Celery on openshift

I'm currently writing a flask application and going to use openshift. I start my worker in my dev environment using

celery worker -A wsgi.app

My question is how do I start my celery worker in openshift? Because if I started in the openshift shell when I exit the shell the process is killed and my background workers never run so the flask application never runs correctly. I really appreciate any help. Thanks.

like image 962
blackone787 Avatar asked May 22 '26 12:05

blackone787


1 Answers

Why can't try like this

celery multi start worker1 \
    --pidfile="$HOME/run/celery/%n.pid" \
    --logfile="$HOME/log/celery/%n.log"

where mentioned here

like image 128
Syed Habib M Avatar answered May 24 '26 00:05

Syed Habib M



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!