-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
We have a case when the executed command want to known total number of processes in order to partition processed data so we intended to run it like
[program:partitioned-processor]
process_name=%(program_name)s_%(process_num)02d
command=/usr/local/bin/php data process --threads=%(numprocs)d --thread=%(process_num)d
autostart=true
autorestart=true
user=www-data
numprocs=8
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
And we wan't to use numprocs from config directly rather configuring both of them with env variable (i think it would be better to configure numprocs with env, and the command will use numproces and process_num to be consistent)
currently we get
Error: Format string '/usr/local/bin/php data process --threads=%(numprocs)d --thread=%(process_num)d' for 'program:partitioned-processor' contains names ('numprocs') which cannot be expanded. Available name
s:
Metadata
Metadata
Assignees
Labels
No labels