R
RunPodā€¢5mo ago
Encyrption

v1 API definitions?

Is there any documentation for RunPod v1 endpoints? specifically looking for documentation for: https://hapi.runpod.net/v1/pod/{POD_ID}/logs This seems to be what RunPod uses to stream their logs from serverless workers to their website. I would like to implement similar functionality into my web app rather than streaming those logs over a web socket, with custom code as I do today. Is there an equivalent documented API call I can use to do this? If not, where can I find information on how to use the above API call in my code?
5 Replies
yhlong00000
yhlong00000ā€¢5mo ago
sorry, this is our internal server and right now we don't have plan to open this to public
Encyrption
EncyrptionOPā€¢5mo ago
So there is no current way through API to retrieve a workers logs? I am redirecting stdio/stderr and streaming that over a web socket to the browser to display the logs in real time. Seems like a lot of work for something so simple. If RunPod has the ability to do that internally why have they not shared that with their customers? With such an API endpoint I wouldn't need to use a web socket at all. Doing so adds at least 10 seconds to each request. I am getting much faster connections using TCP port. šŸ˜ But it would be great if we could get access to the logs via API.
lostdev
lostdevā€¢5mo ago
Is this code something simple you could share? I just started and have logging communication coming up on my TODO. No worries if you'd rather not.
Encyrption
EncyrptionOPā€¢5mo ago
I've shifted from using web socket to using progress_update. Below is an example:
runpod.serverless.progress_update(job, {'POD_ID': POD_ID, 'log': file_content})
runpod.serverless.progress_update(job, {'POD_ID': POD_ID, 'log': file_content})
I can routinely, in the code send updates to the log to the browser to display.
lostdev
lostdevā€¢5mo ago
great thank you

Did you find this page helpful?