Start the cron jobs

Are these to be registered inside the worker container? Any guide to do so? Tried severlal times without success. Thx
No description
5 Replies
Guillaume
Guillaume2mo ago
you just need to run this from your server where the codebase stands. from the root folder. it will simply add a few keys in redis you don't need to be inside the container to run this. Locally, you can simply open your terminal and run it it should work
vanya
vanya4w ago
Dear @Guillaume, could you please specify more details? I've struggled with this for some time now. When I simply run this from my root folder, I get: Command 'yarn' not found, but can be installed with: sudo apt install cmdtest OK no big deal, I install yarn with sudo apt install cmdtest Now I run the command again and get: 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'command:prod' Could you please help me out? 🙂 Why do the docs specifically mention "from your worker container"? Update: what I did now is go inside the container with docker exec -it twenty-worker-1 /bin/sh Once inside, run the original command. This seems to work.
Guillaume
Guillaume4w ago
great ! good job
Leontes
Leontes3w ago
I have a question related to this: If the container dies or gets removed, do we have to register the cron jobs again?
Guillaume
Guillaume3w ago
it is sotred in the cache, so only if redis is flushed you need to re-register it

Did you find this page helpful?