R
Railway10mo ago
ENT3I <3

It's possible to pass project variables to start commands?

Hello, I find it interesting if I could pass variables to the start command. Right now, I have 15 workers, and when I want to change the concurrency for all of them, I have to do it 1 by 1. So, is it possible to pass a project variable there?
No description
Solution:
for sure, since that start command is in exec form you need to wrap your desired command in a shell so you can have variable expansion.
/bin/sh -c "n8n worker --concurrency=${N8N_CONCURRENCY}"
/bin/sh -c "n8n worker --concurrency=${N8N_CONCURRENCY}"
...
Jump to solution
5 Replies
Percy
Percy10mo ago
Project ID: N/A
ENT3I <3
ENT3I <3OP10mo ago
N/A
Solution
Brody
Brody10mo ago
for sure, since that start command is in exec form you need to wrap your desired command in a shell so you can have variable expansion.
/bin/sh -c "n8n worker --concurrency=${N8N_CONCURRENCY}"
/bin/sh -c "n8n worker --concurrency=${N8N_CONCURRENCY}"
ENT3I <3
ENT3I <3OP10mo ago
awesome! thank you Brody
Brody
Brody10mo ago
no problem!
Want results from more Discord servers?
Add your server