Issue 9832

Title
Listeners not started after fork
Priority
bug
Status
resolved
Nosy list
ced, nicoe, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2020-11-13.17:38:13 by ced, last changed 3 days ago by roundup-bot.

Messages

New changeset e9fdecabd3f6 by Cédric Krier in branch '5.8':
Store listener threads per process
https://hg.tryton.org/trytond/rev/e9fdecabd3f6

New changeset 3dcd5d0f8b46 by Cédric Krier in branch '5.6':
Store listener threads per process
https://hg.tryton.org/trytond/rev/3dcd5d0f8b46

New changeset 642bbe20ede1 by Cédric Krier in branch '5.4':
Store listener threads per process
https://hg.tryton.org/trytond/rev/642bbe20ede1

New changeset 72237804fbcd by Cédric Krier in branch '5.0':
Store listener threads per process
https://hg.tryton.org/trytond/rev/72237804fbcd
New changeset fb40da5f2a75 by Cédric Krier in branch 'default':
Store listener threads per process
https://hg.tryton.org/tryton-env/rev/fb40da5f2a75
New changeset ecc681290782 by Cédric Krier in branch 'default':
Store listener threads per process
https://hg.tryton.org/trytond/rev/ecc681290782
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-11-13.17:38:13

When trytond process is forked (for example by µwsgi), new listeners for the Cache and the Bus are not started if they were started on the parent process. This is because we use the thread object stored in a dictionary as detector to start or not. But on the forked process we still have the value from the parent.
This is the same problem as issue8281 for database connection so I think we should solve the same way by using the PID when storing such values.

History
Date User Action Args
2020-11-29 17:44:41roundup-botsetkeyword: - backport
messages: + msg62300
2020-11-27 22:20:28roundup-botsetmessages: + msg62257
2020-11-27 22:20:24roundup-botsetmessages: + msg62256
nosy: + roundup-bot
status: testing -> resolved
2020-11-19 15:14:06nicoesetnosy: + nicoe
2020-11-13 19:56:43reviewbotsetmessages: + msg61913
2020-11-13 18:00:14reviewbotsetmessages: + msg61912
nosy: + reviewbot
2020-11-13 17:46:41cedsetkeyword: + backport
2020-11-13 17:39:58cedsetkeyword: + review
reviews: 329601002
status: in-progress -> testing
2020-11-13 17:38:13cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)