Drupal 10: Recovering From A Broken Cron Run

If Drupal's cron fails then it will be in a broken state that will give you the following error if you attempt to run it again:

Attempting to re-run cron while it is already running

To recover from this error you need to delete the 'cron' record from the semaphore table.

DELETE FROM semaphore WHERE name='cron';

Run this via Drush using the following command.

drush sql:query "DELETE FROM semaphore WHERE name='cron';"

 

Comments

Thanks a lot!

Permalink

Add new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
2 + 18 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.