0

I have tried the following:

drush php-eval "\Drupal::lock()->release('cron');"

This had no effect. I'm still seeing "Attempting to re-run cron" errors pile up in the log.

I also tried the mysql query:

DELETE FROM semaphore WHERE name = 'cron';

The query ran fine, but had no effect. I'm still seeing "Attempting to re-run cron" errors pile up in the log.

I also checked the processes:

ps aux | grep cron

I saw a number of Drupal-related cron processes, and killed them all.

I then repeated...

drush php-eval "\Drupal::lock()->release('cron');"

None of this has had any effect. I clear the log, and then new "Attempting to re-run cron" errors appear.

2
  • 3
    Did you ensure to set the poor man's cron to "execute never" at /admin/config/system/cron?
    – leymannx
    Feb 13, 2022 at 20:47
  • That was it exactly. Once I switched that to "never," and then ran the drush command in my question, it stopped.
    – arnoldbird
    Feb 13, 2022 at 21:42

1 Answer 1

0

Check if the "Automated Cron" core module is enabled. If so, you'll find a setting at /admin/config/system/cron where you can set the so called poor man's cron (cron triggered by site traffic) to be executed "never".

If no other cron has been configured, like a server cron executing drush cron for example or external service that periodically visits the hashed cron URL (which can be found on the same page as the poor man's cron), setting poor man's cron to be executed "never" should then completely stop any cron running on your site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.