# Disable campaign ID from Cron Jobs (and accept an array in -id-channel argmument)

**URL:** <https://forum.mautic.org/t/disable-campaign-id-from-cron-jobs-and-accept-an-array-in-id-channel-argmument/22279>\
**Category:** Ideas and Feature Requests\
**Tags:** campaigns\
**Created:** [January 9, 2022, 7:14pm UTC](https://forum.mautic.org/t/disable-campaign-id-from-cron-jobs-and-accept-an-array-in-id-channel-argmument/22279 "2022-01-09T19:14:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonardoborlot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leonardoborlot/32/72_2.png) [@leonardoborlot](https://forum.mautic.org/u/leonardoborlot)\
**Post date:** [January 9, 2022, 7:14pm UTC](https://forum.mautic.org/t/disable-campaign-id-from-cron-jobs-and-accept-an-array-in-id-channel-argmument/22279/1 "2022-01-09T19:14:55Z")

</div>

My idea is:  
_Create a new argument in cronjob to execute all campign except the ids then was in the arg._  
_It will works against the “–campaign-id” argument, except why this argument cannot accept array._

I think these groups of people would benefit from this idea:  
_Theres some campaings then whe need to run cronjobs every minute, but exist another campaigns then you need to run whith more then one minutes._  
_Without this feature, if you whant to do a fine adjust in the campaigns interval, you need to add one line for each campaigns in cron job._

Why I think they would benefit from this idea:  
_The ideia é optmize this, and add more crontrol. In the future I think so to add some campaigns groups to run the cronjobs in diferent schedule time._

Any code or resources to support this idea:  
_just the idea…_

Are you willing to work on this idea?:  
_sorry, im a newbie developer_

What skills and resources do you need to explore this further?  
_my ideia is turn the cronjobs more optmized._

---

<div class="post-metadata">

**Author:** ![fbugalla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fbugalla/32/759_2.png) [@fbugalla](https://forum.mautic.org/u/fbugalla)\
**Post date:** [July 11, 2022, 12:01pm UTC](https://forum.mautic.org/t/disable-campaign-id-from-cron-jobs-and-accept-an-array-in-id-channel-argmument/22279/2 "2022-07-11T12:01:32Z")

</div>

Hi Leonardo,  
actually this is a very interesting feature to add to Mautic. In our case we have some campaigns/segments running against a 2.5M contacts and they take a very long time. As basically they perform checks of conditions (example: PageHitCount of 3 or more URL) they really don’t need to run every 15min. or so and could run just once a day.  
A flag to avoid running would allow Mautic to execute only those calculations needed for real time processess leaving for late at night other time consuming processess.

---

<div class="post-metadata">

**Author:** ![leonardoborlot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leonardoborlot/32/72_2.png) [@leonardoborlot](https://forum.mautic.org/u/leonardoborlot)\
**Post date:** [July 11, 2022, 12:34pm UTC](https://forum.mautic.org/t/disable-campaign-id-from-cron-jobs-and-accept-an-array-in-id-channel-argmument/22279/3 "2022-07-11T12:34:48Z")

</div>

Hi man!

I did it um shell script. I will publish on next version of my mautic free docker imagem.  
May you acess and install from this link: [https://mtcfacil.com.br/script/](https://mtcfacil.com.br/script/)
