# \[critical\] worker timeout

**URL:** <https://discuss.tryton.org/t/critical-worker-timeout/6996>\
**Category:** System Administrator\
**Created:** [February 16, 2024, 7:30am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996 "2024-02-16T07:30:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/o/d2c977/32.png) [@Olivier](https://discuss.tryton.org/u/Olivier)\
**Post date:** [February 16, 2024, 7:30am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/1 "2024-02-16T07:30:17Z")

</div>

Good morning,  
Since switching to version 7, when I have to print more than 10 invoices at once the process crashes with this single message in the logs:

[CRITICAL] WORKER TIMEOUT

The process worked perfectly in previous versions and I can’t find how to increase this timeout.

Thank you in advance for your feedback

Olivier

---

<div class="post-metadata">

**Author:** ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)\
**Post date:** [February 16, 2024, 7:40am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/2 "2024-02-16T07:40:01Z")

</div>

Good morning,  
it seems you have the workers activated in the `trytond.conf` file. Did you also start at least one `trytond-worker` service?

---

<div class="post-metadata">

**Author:** ![Olivier](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/o/d2c977/32.png) [@Olivier](https://discuss.tryton.org/u/Olivier)\
**Post date:** [February 16, 2024, 8:06am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/3 "2024-02-16T08:06:37Z")

</div>

Hello,

In my configuration file I specified:

[queue]  
worker=false

But actually I have this line in the logs after restarting the server:

[INFO] Using worker: sync

---

<div class="post-metadata">

**Author:** ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)\
**Post date:** [February 16, 2024, 8:26am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/4 "2024-02-16T08:26:15Z")

</div>

What happens when you remove the complete section (the default of `worker` is `False`)?

---

<div class="post-metadata">

**Author:** ![Olivier](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/o/d2c977/32.png) [@Olivier](https://discuss.tryton.org/u/Olivier)\
**Post date:** [February 16, 2024, 8:42am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/5 "2024-02-16T08:42:12Z")

</div>

Basically there was nothing in this section, I tried a bit of everything before coming to talk about it here.

---

<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:** [February 16, 2024, 8:46am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/6 "2024-02-16T08:46:07Z")

</div>

> [@Olivier](#):
>
> the process crashes with this single message in the logs:
> 
> [CRITICAL] WORKER TIMEOUT

Which process?  
Is it the exact content of the log?  
What is your setup?

---

<div class="post-metadata">

**Author:** ![Olivier](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/o/d2c977/32.png) [@Olivier](https://discuss.tryton.org/u/Olivier)\
**Post date:** [February 16, 2024, 9:15am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/7 "2024-02-16T09:15:22Z")

</div>

I solved the problem by adding:

timeout=3600

in the file /etc/gunicorn.conf.py

---

<div class="post-metadata">

**Author:** ![acaubet](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/acaubet/32/1493_2.png) [@acaubet](https://discuss.tryton.org/u/acaubet)\
**Post date:** [February 19, 2024, 9:50am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/8 "2024-02-19T09:50:40Z")

</div>

FTR, it was already reported and was closed and classified as “expected behavior”.

> **[Gunicorn timeout on stock supply (#6) · Issues · Tryton / Tryton Docker · GitLab](https://foss.heptapod.net/tryton/tryton-docker/-/issues/6)**
>
> When running more than 30 secs (gunicorn default), the following crash: tryton\_1 | 1598...

---

<div class="post-metadata">

**Author:** ![m4ur1c3](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/9f8e36/32.png) [@m4ur1c3](https://discuss.tryton.org/u/m4ur1c3)\
**Post date:** [May 21, 2024, 9:30am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/9 "2024-05-21T09:30:00Z")

</div>

@ced , in the corresponding [MR](https://foss.heptapod.net/tryton/tryton-docker/-/merge_requests/19#note_338817) you say, there is an environment variable to set the gunicorn timeout in docker. I am facing also the problem @pokoli experienced, that using `GUNICORN_CMD_ARGS="--timeout 0"` doesn’t work. Can you help and explain, how to do it? Thank you.

---

<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 21, 2024, 9:37am UTC](https://discuss.tryton.org/t/critical-worker-timeout/6996/10 "2024-05-21T09:37:45Z")

</div>

If it does not work for you, you should see with gunicorn project.
