Run a command on only background worker

I need to run a specific command on my background worker in order to start it processing job queues. Is there a way to do this in render.yaml?

So to re-iterate, I need to run a command on the WORKER box. I can make everything work now by going to the worker in my render dashboard and going into “shell” and typing the command, but I need this to happen on deploy.


You should put the command in the startCommand property of the worker and that’s what we’d execute


John B

Thanks John