def get(self, request, app, name=None, nowait=False): return instances.get(name) if name else instances.all(app=app)
def get(self, request, app, name): instance = instances.get(name) return {'max': instance['max_concurrency'], 'min': instance['min_concurrency']}
def get(self, request, app, name): instance = instances.get(name) return { 'max': instance['max_concurrency'], 'min': instance['min_concurrency'] }