Background queues and workers
In reading docs I learned that if Procfiles are present, only one process is run, making it impossible to setup multiple processes for an app.
How can I run worker processes?
11 Replies
Project ID:
N/A
N/A
I think the same problem is happening to me, I try to make Task schedule in the deployment of my project in Laravel and I have not been able to find a solution to it
in the past I've seen people use supervisord to run multiple processes
I am new to railway and also this discord chat, so I'm not quite sure how things work here. Does "conductor" mean people are Railway staff?
conductors are community helpers and server mods
the people with the railway logo are people who work for railway
Thanks @Brody.
In relation to my question about worker processes and background queues, is how Railway staff recommend people workaround the limitations that Railway has in having only a single running process. Is the recommendation to deploy many app instances (all with different start commands?), or something else? Longer term, how will the platform change to make this possible?
its not so much a limitation as its just simply not how you would do it on railway, railway is not a heroku clone, and if you try to do everything the same way you did on heroku you are gonna run into headaches and confusion, so whether you want to do a single service with servervisord or multiple services, thats completely up to you, and the platform doesn't need to change to make this possible, it up to the user to choose how they would like to run multiple workers or background tasks
keep in mind Procfiles are a heroku thing and railway has only implemented basic support for them so that basic apps can work
IMO: Process and resource separation/contention is important for many applications in order for reliable performance and stability. I wouldn’t be willing to run our very busy application in that manner
then don't, you are free to run your apps how you want, railway just doesn't provide full compatibility with heroku's Procfile
I’m not specifically interested in support for a procfile. I want to orchestrate application processes in a way that they run without risk of interference between processes. AFAIK railway doesn’t document the approach you’ve mentioned and I see no alternatives suggested
And also, this is a weird way to get advice and it’s not working for me.