Troubleshooting APScheduler Worker and Streamlit Web Service Configuration in a Single Project
organametrisis
PROOP

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?

Solved

5 Replies

organametrisis
PROOP

a year ago

c64676be-9008-4bca-9dac-377cdc529ec8


brody
EMPLOYEE

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


brody
EMPLOYEE

a year ago

this is for django, but it should give you the idea of what you need to do after reading it -


organametrisis
PROOP

a year ago

ok thanks! will read it


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...