# What are the best timing settings for cron

**URL:** <https://forum.mautic.org/t/what-are-the-best-timing-settings-for-cron/7463>\
**Category:** Product Support\
**Created:** [February 10, 2017, 9:06am UTC](https://forum.mautic.org/t/what-are-the-best-timing-settings-for-cron/7463 "2017-02-10T09:06:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chizuokagmail-com](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@chizuokagmail-com](https://forum.mautic.org/u/chizuokagmail-com)\
**Post date:** [February 10, 2017, 9:06am UTC](https://forum.mautic.org/t/what-are-the-best-timing-settings-for-cron/7463/1 "2017-02-10T09:06:32Z")

</div>

May i know what are the best settings for the cron timings… i read that you should not have them overlap. But some run really fast some really long which should be set for which? The below is mine… advice anyone?

Code:

\*/15 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:webhooks:process \> /dev/null 2\>&1 \* \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:messages:send \> /var/log/mautic/mydomain-messages-process.log 2\>&1 \*/10 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:campaigns:rebuild \> /dev/null 2\>&1 \*/10 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:campaigns:trigger \> /dev/null 2\>&1 \* \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:emails:send \> /var/log/mautic/mydomain-email-process.log 2\>&1 0 0 \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:email:fetch \> /dev/null 2\>&1 0 0 \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:iplookup:download \> /dev/null 2\>&1 \*/15 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:segments:update \> /dev/null 2\>&1

---

<div class="post-metadata">

**Author:** ![chizuokagmail-com](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@chizuokagmail-com](https://forum.mautic.org/u/chizuokagmail-com)\
**Post date:** [February 10, 2017, 9:06am UTC](https://forum.mautic.org/t/what-are-the-best-timing-settings-for-cron/7463/2 "2017-02-10T09:06:32Z")

</div>

May i know what are the best settings for the cron timings… i read that you should not have them overlap. But some run really fast some really long which should be set for which? The below is mine… advice anyone?

[code]\*/15 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:webhooks:process \> /dev/null 2\>&1

- 
  - 
    - 
      - 
        - /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:messages:send \> /var/log/mautic/mydomain-messages-process.log 2\>&1  
\*/10 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:campaigns:rebuild \> /dev/null 2\>&1  
\*/10 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:campaigns:trigger \> /dev/null 2\>&1

- 
  - 
    - 
      - 
        - /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:emails:send \> /var/log/mautic/mydomain-email-process.log 2\>&1  
0 0 \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:email:fetch \> /dev/null 2\>&1  
0 0 \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:iplookup:download \> /dev/null 2\>&1  
\*/15 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:segments:update \> /dev/null 2\>&1[/code]

---

<div class="post-metadata">

**Author:** ![Paul999](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paul999/32/156_2.png) [@Paul999](https://forum.mautic.org/u/Paul999)\
**Post date:** [February 10, 2017, 1:31pm UTC](https://forum.mautic.org/t/what-are-the-best-timing-settings-for-cron/7463/3 "2017-02-10T13:31:41Z")

</div>

The important one is campaigns:trigger

I set that to run every minute since that one is responsible for sending out emails once someone is added to a segment.

The other cronjobs are not so time sensitive. I’ve set them to 5 minutes. But 30 minutes is ok too.

---

<div class="post-metadata">

**Author:** ![bchiam](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bchiam](https://forum.mautic.org/u/bchiam)\
**Post date:** [February 12, 2017, 4:37pm UTC](https://forum.mautic.org/t/what-are-the-best-timing-settings-for-cron/7463/4 "2017-02-12T16:37:57Z")

</div>

[quote=19842:@chizuoka@gmail.com]May i know what are the best settings for the cron timings… i read that you should not have them overlap. But some run really fast some really long which should be set for which? The below is mine… advice anyone?

[code]\*/15 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:webhooks:process \> /dev/null 2\>&1

- 
  - 
    - 
      - 
        - /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:messages:send \> /var/log/mautic/mydomain-messages-process.log 2\>&1  
\*/10 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:campaigns:rebuild \> /dev/null 2\>&1  
\*/10 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:campaigns:trigger \> /dev/null 2\>&1

- 
  - 
    - 
      - 
        - /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:emails:send \> /var/log/mautic/mydomain-email-process.log 2\>&1  
0 0 \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:email:fetch \> /dev/null 2\>&1  
0 0 \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:iplookup:download \> /dev/null 2\>&1  
\*/15 \* \* \* \* /usr/bin/env php /var/www/mydomain/marketing/app/console mautic:segments:update \> /dev/null 2\>&1[/code][/quote]

I set all my cron job to 5 minutes too. It works well so far.

---

<div class="post-metadata">

**Author:** ![chizuokagmail-com](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@chizuokagmail-com](https://forum.mautic.org/u/chizuokagmail-com)\
**Post date:** [February 22, 2017, 12:07pm UTC](https://forum.mautic.org/t/what-are-the-best-timing-settings-for-cron/7463/5 "2017-02-22T12:07:08Z")

</div>

There is a recommendation in the documentation to stagger the firing of these crons so as they dont run concurrently. Hence i was wondering what the best way to stagger them?
