Cron jobs on WooCart are executed with two methods:
- Real Cron Job runner, where we request cron job execution every minute. These cron jobs can run up to 180s and you can see them being run in traffic logs (/wp-cron.php?livenessProbe).
- Dedicated Cron job runner which runs every 30min with no execution limit (see it WP-CLI by running
wp cron event run --due-now).
You can inspect a list of cron jobs and their last execution by using WP-CLI with
wp cron event list or run all jobs manually
wp cron event run --all.
To manage cron jobs use the plugin WP Crontrol.
Troubleshooting Cron Errors: Allowed memory exhausted
- Note the time the error happened from the Errors page. If it's a regular error, find the time interval.
- Open Crontrol by going to Tools > Cron Events.
- Open Cron Scheduled in the top menu and find the jobs that are running at the same interval as found in step 1.
- Go back to Cron Events and find the jobs from step 3.
- Run jobs one-by-one, leaving at least 5 minutes between runs. Monitor the Errors log in the WooCart dashboard. One of the jobs will show up in the log. Analyze that job, it usually comes from a plugin. You can then either disable that plugin or troubleshoot the issue further with a developer.