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!
Submitted by eugene_rahunak on Mon, 05/06/2024 - 13:24
PermalinkJust because I already ended up here once and it was not enough. :-) If above is not sufficient try also:
Submitted by Stefan on Wed, 07/09/2025 - 03:05
PermalinkThanks Stefan! Good to know :)
Submitted by philipnorton42 on Wed, 07/09/2025 - 09:04
PermalinkAdd new comment