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()
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()