Why Crons doesn't run?

Hello everyone!

Someone knows why all my crons doens't runs automatically?
None cron register activity, althougt is configured with an execution minimun interval.

I added this line: $sugar_config['cron']['min_cron_interval'] = 0; on my config_override.php file but this doesn't work too.

  • Are you using Linux or Windows? You need to add the items to the appropriate OS scheduler. For linux you need to add the items into the correct crontab. If you go to the Schedulers page at the bottom there should be instructions on how to setup cron.

  • Hi Jeff!
    Thank you for your answer.

    On my local I have Windows, on my Prod side I have Linux.
    To make a test on my Windows, I ran the follow commands on my command terminal:

    The command 'php.exe -f cron.php' rans succesfully...

    But I hadn't none result on my tasks planifiers.

    For example on my cron 'Check Inbound Mailboxes', the last execution time was at 2018.

    Do you have any idea why occurs this problem?

    Regards.

  • Hi Norberto,

    As Bjorn said, earlier to Sugar 10 version there is End Date and Time set on schedulers. After 10 version Sugar made it as non required field. You can keep this as empty or set to higher interval. Go to the Schedulers section and check the Check Inbound Mailboxes scheduler, edit and check the Advanced options. Here you can set the End Date and Time of the Scheduler. After doing this change please check if the scheduler is running or not.

    If the still the scheduler is not running, make sure the CRON is running fine and other schedulers are also running as expected.

    Hope this information helps you:)

    Thanks and Regards,

    PK,

    Senior Solution Engineer,

    www.bhea.com