Ejemplo n.º 1
0
class NylasWSGIWorker(GeventWorker):
    """Custom worker class for gunicorn. Based on
    gunicorn.workers.ggevent.GeventPyWSGIWorker."""
    server_class = WSGIServer
    wsgi_handler = NylasWSGIHandler

    def init_process(self):
        if MAX_BLOCKING_TIME:
            self.tracer = Tracer(max_blocking_time=MAX_BLOCKING_TIME)
            self.tracer.start()
        super(NylasWSGIWorker, self).init_process()
Ejemplo n.º 2
0
class NylasWSGIWorker(GeventWorker):
    """Custom worker class for gunicorn. Based on
    gunicorn.workers.ggevent.GeventPyWSGIWorker."""
    server_class = WSGIServer
    wsgi_handler = NylasWSGIHandler

    def init_process(self):
        if MAX_BLOCKING_TIME:
            self.tracer = Tracer(max_blocking_time=MAX_BLOCKING_TIME)
            self.tracer.start()
        super(NylasWSGIWorker, self).init_process()
Ejemplo n.º 3
0
 def init_process(self):
     if MAX_BLOCKING_TIME:
         self.tracer = Tracer(max_blocking_time=MAX_BLOCKING_TIME)
         self.tracer.start()
     super(NylasWSGIWorker, self).init_process()
Ejemplo n.º 4
0
 def init_process(self):
     if MAX_BLOCKING_TIME:
         self.tracer = Tracer(max_blocking_time=MAX_BLOCKING_TIME)
         self.tracer.start()
     super(NylasWSGIWorker, self).init_process()