asgi_app

function

gworker_client.endpoints.asgi_app

Mark a task as an ASGI app factory. The decorated function must return an ASGI-compatible callable (FastAPI, Starlette, etc.). gworker proxies all HTTP traffic to the app. Combine with @app.task() for resource config.

Signature

python
1asgi_app(requires_auth: bool = True) -> Callable[[_F], _F]

← Back to docs