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
Percy
Percy16mo ago
Project ID: N/A
benschwarz
benschwarz16mo ago
N/A
jhon3316
jhon331616mo ago
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
Brody
Brody16mo ago
in the past I've seen people use supervisord to run multiple processes
benschwarz
benschwarz16mo ago
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?
Brody
Brody16mo ago
conductors are community helpers and server mods the people with the railway logo are people who work for railway
benschwarz
benschwarz16mo ago
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?
Brody
Brody16mo ago
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
benschwarz
benschwarz16mo ago
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
Brody
Brody16mo ago
then don't, you are free to run your apps how you want, railway just doesn't provide full compatibility with heroku's Procfile
benschwarz
benschwarz16mo ago
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.
Want results from more Discord servers?
Add your server