Philpax
RRunPod
•Created by Philpax on 2/24/2025 in #⚡|serverless
Locally testing a worker where the consuming code relies on the job ID
Digging into the FastAPI code, it doesn't look like this is possible - the webhook will never return the job ID for either
/runsync
or /status
for the webhook:
- https://github.com/runpod/runpod-python/blob/2c62255c5638e2aef3176317c20365daef9b73d1/runpod/serverless/modules/rp_fastapi.py#L333-L343
- https://github.com/runpod/runpod-python/blob/2c62255c5638e2aef3176317c20365daef9b73d1/runpod/serverless/modules/rp_fastapi.py#L410-L420
I might have to monkeypatch this at runtime >_>2 replies