[FIX] server.py: don't start multiple FSWatcher in multiworker mode
Before this commit every worker would start his own FSWatcher.
This commit is contained in:
@@ -941,7 +941,7 @@ def start(preload=None, stop=False):
|
||||
server = ThreadedServer(odoo.service.wsgi_server.application)
|
||||
|
||||
watcher = None
|
||||
if 'reload' in config['dev_mode']:
|
||||
if 'reload' in config['dev_mode'] and not odoo.evented:
|
||||
if watchdog:
|
||||
watcher = FSWatcher()
|
||||
watcher.start()
|
||||
|
||||
Reference in New Issue
Block a user