a year ago
I have a project that includes both a service and a worker. The worker runs multiple scripts using APScheduler, and I also need to run a Streamlit web service, which shares the same codebase. I've attempted to configure both in my Procfile as follows:
worker: python app/scheduler.py
web: streamlit run app/streampurchaseorder.py --server.port $PORT
However, I'm encountering an issue where the worker does not function properly. Could there be a better way to set this up to ensure both components operate correctly within the same project?
5 Replies
a year ago
worker is not supported on railway, instead you would want to deploy two separate services into your project, they both need to deploy from the same repo, and youd just set the start command to either start streamlit or the worker
a year ago
this is for django, but it should give you the idea of what you need to do after reading it -
a year ago
!s
Status changed to Solved brody • about 1 year ago