← Files Runpod (Official)ARCHIVED FILE
skills/runpod/golden-paths/23-minimal-queue-image/template/handler.py
321 Bytes · Oct 3, 2026 · 06:21 UTC
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