# Triggers not executed in cron

**URL:** https://discuss.tryton.org/t/triggers-not-executed-in-cron/4258
**Category:** Developer
**Created:** [May 28, 2021, 3:56pm UTC](https://discuss.tryton.org/t/triggers-not-executed-in-cron/4258 "2021-05-28T15:56:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)
#### Post date: [May 28, 2021, 3:56pm UTC](https://discuss.tryton.org/t/triggers-not-executed-in-cron/4258/1 "2021-05-28T15:56:17Z")

</div>

Just like mentioned in [Create triggers are not executed when user is 0](https://discuss.tryton.org/t/create-triggers-are-not-executed-when-user-is-0/1390) the root use does not execute triggers. However as currently cron jobs are executed as root it means that triggers are not fired in cron jobs.

Is that intended? Has anyone faced the same problem?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 28, 2021, 4:39pm UTC](https://discuss.tryton.org/t/triggers-not-executed-in-cron/4258/2 "2021-05-28T16:39:09Z")

</div>

> **[Execute trigger even with root (#8993) · Issues · Tryton / Tryton · GitLab](https://foss.heptapod.net/tryton/tryton/-/issues/8993)**
>
> Since the initial implementation of ir.trigger, the modification of root has been ignored. This is because the database update is using this user and we do not want...

---

<div class="post-metadata">

### Author: ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)
#### Post date: [May 28, 2021, 4:57pm UTC](https://discuss.tryton.org/t/triggers-not-executed-in-cron/4258/3 "2021-05-28T16:57:05Z")

</div>

Thanks.

I checked default branch before posting but I must have looked at the wrong branch actually.
