How to use the scs.web.simple_get function in scs

To help you get started, we’ve selected a few scs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github celery / cyme / scs / views.py View on Github external
@web.simple_get
def task_wait(self, request, app, uuid):
    return {"result": AsyncResult(uuid).get()}
github celery / cyme / scs / views.py View on Github external
@web.simple_get
def task_result(self, request, app, uuid):
    return {"result": AsyncResult(uuid).result}
github celery / cyme / scs / views.py View on Github external
@web.simple_get
def instance_stats(self, request, app, name):
    return nodes.stats(name)
github celery / cyme / scs / views.py View on Github external
@web.simple_get
def task_state(self, request, app, uuid):
    return {"state": AsyncResult(uuid).state}
github celery / cyme / scs / views.py View on Github external
@web.simple_get
def ping(self, request):
    return {"ok": "pong"}