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
Percy4mo ago
Project ID: N/A
ENT3I <3
ENT3I <34mo ago
N/A
Solution
Brody
Brody4mo 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 <34mo ago
awesome! thank you Brody
Brody
Brody4mo ago
no problem!