Cron not running when frequency is less then default cron frequency?

Created on 27 November 2018, over 6 years ago
Updated 17 March 2024, about 1 year ago

Hi,
I am try to install this module in my new drupal8 site. In this site I create a custom module in which i used hook_cron() to insert some data in database.

Step 1:-
I set custom cron frequency to be 5 minutes and default cron frequency is 1hour set.
According to it my custom cron run in every 5 minutes but it run when one hour completed then default cron and custom cron run together.

Step 2:-
When i change default cron run frequency to 1 minute and my custom cron frequency is 5 minutes then my cron runs once per 5 minutes not per minutes.

Then my question to you is that this module depends on default cron run or i do something wrong please support me.

📌 Task
Status

Active

Version

2.0

Component

Documentation

Created by

🇮🇳India 21kPiyush

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.

  • 🇬🇧United Kingdom jonathanshaw Stroud, UK

    You have to trigger cron often enough to to be able to execute the most frequent cron job.

    We should document this.
    The D7 version talks about needing to configure cron to run every minute, which made me wonder if this was required for D8+.

  • 🇨🇭Switzerland berdir Switzerland

    You only need to run it every minute if you have cron jobs that are that frequent or if you rely on fast queue processing which by default runs on every cron run.

  • Status changed to Fixed 5 months ago
  • 🇨🇭Switzerland berdir Switzerland

    This is now documented.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024