← Files Runpod (Official)ARCHIVED FILE

skills/runpod/golden-paths/23-minimal-queue-image/template/handler.py

321 Bytes · Oct 5, 2026 · 18:17 UTC

↓ Download file

import runpod


def handler(event):
    """Minimal queue-based Runpod serverless handler.

    The request's `input` dict is passed as `event["input"]`.
    """
    inp = event.get("input", {}) or {}
    return {"message": f"hello {inp.get('name', 'world')}", "echo": inp}


runpod.serverless.start({"handler": handler})

SHA-256: 227e7d3f0fb5b5c539c92ff0f48cc0694d6fd7225d7c054c6447b26d9c3f0cb3