Add check on built in Cron

Created on 19 September 2013, about 11 years ago
Updated 2 May 2023, over 1 year ago

Would be nice to add a check on the built in Cron functionality that can be configured on admin/config/system/cron. If the cron runs at regular intervals, we can assume it's set up using crontab and the built in Drupal core Cron can be disabled.

variable_get('cron_safe_threshold', DRUPAL_CRON_DEFAULT_THRESHOLD);

At the very least we should probably show a warning when it's turned on...

Feature request
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

🇧🇪Belgium malc0mn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany Anybody Porta Westfalica

    @malc0mn what's the real status here? I can just see the commit, but the original request was against 7.x - how to proceed?

  • 🇧🇪Belgium malc0mn

    Is there still such a thing as 'poor mans cron' in D8+? I'm afraid I never followed beyond D7 :s
    Wouldn't add new D7 features either, so if it still exists just do a new implementation for D9+?

  • 🇩🇰Denmark ressa Copenhagen

    Poormanscron functionality added to Drupal 7 core and onwards ( #331611: Add a poormanscron-like feature to core ) is still in Drupal 10, but the "Poormans" part is not used any more, just "Cron" :)

    For a start, it would be nice with a check if Cron is running at least once an hour, and issue a warning if not. I think 1 run/hour is the minimum recommended threshold now, since any security updates available need to get rolled out As Soon As Possible via Automatic Updates, when it's ready later this year.

    Secondarily (as it says in the code, line 778) it would be nice with some more checks:

    // cron is running regularly AND the poormanscron is disabled?

Production build 0.71.5 2024