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
sorry, this is our internal server and right now we don't have plan to open this to public
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.
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.
I've shifted from using web socket to using progress_update. Below is an example:
I can routinely, in the code send updates to the log to the browser to display.
great thank you