hiransarkar
hiransarkar
RRailway
Created by hiransarkar on 7/4/2023 in #✋|help
Plugin was stopped due to exeeding usage limits. Click the button below to start the plugin again!
I have already switched to the new hobby plan. I am not sure, where is the problem.
15 replies
RRailway
Created by hiransarkar on 6/3/2023 in #✋|help
Deploying Django with celery
Hi everyone. I have a simple django api service, which makes use of celery. for handling the background tasks. Usually in local, I start django in one shell
python manage.py runserver
python manage.py runserver
and celery in another shell
celery -A backend worker -l INFO -P gevent
celery -A backend worker -l INFO -P gevent
and its works just fine. But I am not sure how to do that in railway. My current proc file looks like this .
web: python manage.py migrate && python manage.py runserver 0.0.0.0:$PORT
worker: railway run celery -A backend worker --pool=prefork --concurrency=8
web: python manage.py migrate && python manage.py runserver 0.0.0.0:$PORT
worker: railway run celery -A backend worker --pool=prefork --concurrency=8
Thanks. Any help is much appreciated?
52 replies