# Executing cron tasks in multi-tenancy for each of the tenant

**URL:** <https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648>\
**Category:** Development\
**Tags:** community, development\
**Created:** [July 1, 2022, 10:24am UTC](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648 "2022-07-01T10:24:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anil\_naut111](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/anil_naut111/32/6472_2.png) [@anil\_naut111](https://forum.mautic.org/u/anil_naut111)\
**Post date:** [July 1, 2022, 10:24am UTC](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648/1 "2022-07-01T10:24:33Z")

</div>

**Your software**  
My Mautic version is: v4.2.1  
My PHP version is: 7.4.29  
My Database type and version is: MySQL 5.7

**Your problem**  
My problem is:

We have installed mautic in multi-tenancy way. But unable to find a way to run cron tasks for each tenant. We have updated paths.php and created separate local.php file for each tenant but when running cron tasks it only runs for default local.php file not for each tenant. If any one have idea please suggest.

Steps I have tried to fix the problem:  
We have tried web way of executing cron tasks but unable to get it.

---

<div class="post-metadata">

**Author:** ![gnumax](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gnumax/32/7061_2.png) [@gnumax](https://forum.mautic.org/u/gnumax)\
**Post date:** [July 1, 2022, 4:47pm UTC](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648/2 "2022-07-01T16:47:06Z")

</div>

HI,

Out of curiosity, are you managing different customer accounts on the same Mautic installation? 🤔

Regards

---

<div class="post-metadata">

**Author:** ![anil\_naut111](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/anil_naut111/32/6472_2.png) [@anil\_naut111](https://forum.mautic.org/u/anil_naut111)\
**Post date:** [July 1, 2022, 5:05pm UTC](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648/3 "2022-07-01T17:05:55Z")

</div>

Yes, I am managing multiple client account in same installation.  
Regards

---

<div class="post-metadata">

**Author:** ![gnumax](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gnumax/32/7061_2.png) [@gnumax](https://forum.mautic.org/u/gnumax)\
**Post date:** [July 1, 2022, 5:09pm UTC](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648/4 "2022-07-01T17:09:37Z")

</div>

Hi 🙂

And is that feasible to comply with Data Protection and GDPR?

Regards!

---

<div class="post-metadata">

**Author:** ![anil\_naut111](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/anil_naut111/32/6472_2.png) [@anil\_naut111](https://forum.mautic.org/u/anil_naut111)\
**Post date:** [July 2, 2022, 5:01am UTC](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648/5 "2022-07-02T05:01:10Z")

</div>

Yes it is.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [July 2, 2022, 6:14am UTC](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648/6 "2022-07-02T06:14:31Z")

</div>

Hi!  
The cron settings are written in the docs of multi-tenant plugin description.  
When you purchased it, you supposed to recieve it.  
Joey

---

<div class="post-metadata">

**Author:** ![anil\_naut111](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/anil_naut111/32/6472_2.png) [@anil\_naut111](https://forum.mautic.org/u/anil_naut111)\
**Post date:** [July 4, 2022, 2:02pm UTC](https://forum.mautic.org/t/executing-cron-tasks-in-multi-tenancy-for-each-of-the-tenant/24648/7 "2022-07-04T14:02:44Z")

</div>

Thanks You @joeyk  
Regards  
Anil
