I am reviewing all the various docker settings to learn the inner workings. I was reviewing the docker network settings when I created a new site. I then deleted the site after inspecting the changes. The ee-cron-scheduler is no longer running after deleting a site. Tried rebooting the system. ee-cron-scheduler still not running.
After diving into the code…
When you do a ee site delete command, the ee-cron-schedule container is stopped to remove any site specific cron jobs. It is never restarted.
Temporary work around:
- check if ee-cron-scheduler is running. The ee-cron-scheduler should be listed.
- If not, then the only way to restart it is to create a new cron job.
ee cron create <site name> --command='wp cron event run --due=now' --schedule='@every 15m'
This will create the cron job and will start the ee-cron-scheduler container. Check if the container is running.
- Now, we want to delete the cron job just created.
ee cron list <site name>
Get the number of the cron job just created.
ee cron delete <number>
This will restart the ee-cron-scheduler and life will be back to normal.
There is a noted issue at github: https://github.com/EasyEngine/easyengine/issues/1365