Exemplo n.º 1
0
 def get(self, request, app, name=None, nowait=False):
     return instances.get(name) if name else instances.all(app=app)
Exemplo n.º 2
0
 def get(self, request, app, name=None, nowait=False):
     return instances.get(name) if name else instances.all(app=app)
Exemplo n.º 3
0
 def get(self, request, app, name):
     instance = instances.get(name)
     return {'max': instance['max_concurrency'],
             'min': instance['min_concurrency']}
Exemplo n.º 4
0
 def get(self, request, app, name):
     instance = instances.get(name)
     return {
         'max': instance['max_concurrency'],
         'min': instance['min_concurrency']
     }