R
RunPod•4mo ago
rewbs

Is there a way to access worker ID & job ID from a handler? Would be good for logging + debugging

If Runpod could drop worker ID and job ID into environment variables made available to handlers that would be ace. Would save me a lot of time manually mapping things when trying to debug issues.
4 Replies
justin
justin•4mo ago
Guessing not 😦 https://discord.com/channels/912829806415085598/1204503062702465044 Was a feedback requested
Justin Merrell
Justin Merrell•4mo ago
The RUNPOD_POD_ID will match the worker handler. If you could open an issue in the runpod-python repo I can add the job_id to the env vars
justin
justin•4mo ago
GitHub
Job ID and/or Worker ID provided · Issue #301 · runpod/runpod-pyth...
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Can be hard to debug what worker is c...
rewbs
rewbs•4mo ago
Thanks both!!