def __init__(self): ServiceBase.__init__(self) ProfileMixin.__init__(self) DispatcherMixin_CRR.__init__(self) if not uwsgi.cache_exists('Service2Counter'): uwsgi.cache_set('Service2Counter', '0') if not uwsgi.cache_exists('Service2Timer'): uwsgi.cache_set('Service2Timer', '0') print uwsgi.queue_size gevent.spawn(microtask, uwsgi.worker_id()) print 'after gevent.spawn'
def __init__(self): ServiceBase.__init__(self) ProfileMixin.__init__(self) DispatcherMixin_AD.__init__(self) self.config = self.getServiceConfig() DBDataMixinBase.__init__( self, self.config['dbconn'] ) self.loadAllTables(self.config['ObjDefs']) # self.makeIndex(self.config['IndexDef']) self.makeTestData()