MikiTheAlien
Best Practice for App with Parallel Tasks
Hi you guys, I have a Fast API Python app that has to be available at all times. BUT it also has to run tasks in the background... now to do this, one could use celery... but this doesn't quite work as one would need to be able to define separate workers, for example with a Procfile like on Heroku, but on railway... we define different services for this use case. The thing is, the main app and the background tasks share alot of code, the data models for example etc... so I really dont want to create another app, could I just deploy the same app again with a different start command?
What we do have are Replicas... but we cannot define custom start commands for each one... this would be so cool!!!
Does anyone know of a solution I could use for this use case right now?
14 replies