General Support - Troubleshooting - Stuck Cron Events


Stuck Cron Events

Back to User Guides

Introduction

Cron is a system process that runs repetetive tasks to execute. Some of our plugins use cron for fetching feeds, for example these plugins:

Sometimes the fetching feeds stops, as some other cron events get stuck and prevent other processes from executing. These stuck processes in a queue are marked as now and their statuses don't change. It can look like this:

Example of the stuck Cron events
Example of the stuck Cron events

TIP

Learn more about cron: What is WP-Cron

How To Fix This?

You will need to install a third-party plugin to manage cron processes, for example - the plugin WP Crontrol.

When the plugin is activated, navigate to Admin Dashboard → Tools → Cron Events.

Managing Cron events
Managing Cron events

Here you can view and manage all cron events on your WP-site.

Cron Events dashboard
Cron Events dashboard

We need to delete those events that prevent other processes to execute. But sometimes it's not enough just to delete them, as they can be recurrent and appear again after deleting. So, first we need to edit needed event. Hover on the needed cron event and click Edit.

Editing the Cron event
Editing the Cron event

On the editing page, find the option Recurrence and in the dropdown choose Non-repeating, then click Update Event.

Updating the cron event
Updating the cron event

Now this process will not be re-scheduled after deleting:

Result
Result

So, hover on this process and click Delete.

Deleting the Cron event
Deleting the Cron event

You can do the same with all stuck cron events. After deleting them, all other processes should start work normally.

TIP

After managing the cron events, you can disable the plugin WP Crontrol to reduce the load on site performance.



WordPress products can be found at  CreativeMinds WordPress Store

Let us know how we can  Improve this Product Documentation Page 

To open a  Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.