Added gevent magic.
This commit is contained in:
parent
2527fa2e1a
commit
75ba2d8e90
4 changed files with 8 additions and 0 deletions
|
@ -250,3 +250,6 @@ class Manager(Loggable):
|
|||
notifier = pyinotify.Notifier(self.wm)
|
||||
notifier.coalesce_events()
|
||||
notifier.loop()
|
||||
#import asyncore
|
||||
#notifier = pyinotify.AsyncNotifier(self.wm)
|
||||
#asyncore.loop()
|
||||
|
|
|
@ -23,6 +23,10 @@ from std_err_override import LogWriter
|
|||
import media.monitor.pure as mmp
|
||||
from api_clients import api_client as apc
|
||||
|
||||
import gevent.monkey
|
||||
|
||||
gevent.monkey.patch_all(select=False)
|
||||
|
||||
|
||||
def main(global_config, api_client_config, log_config,
|
||||
index_create_attempt=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue