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.

Michael,

You should put the command in the startCommand property of the worker and that’s what we’d execute https://render.com/docs/blueprint-spec#web-services-workers-private-services-and-cron-jobs

Regards,

John B

Thanks John

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.