R
RunPod4w ago
dgaff

Can I look at all workers in serverless endpoint, review latest completed request & delete them

I have an urgent issue that requires a patch where I need to look at all currently online workers for a serverless endpoint, review each of the latest completed tasks, then optionally be able to kill / delete that worker immediately based on the length of time the task took. Please help. Urgent.
1 Reply
Jason
Jason4w ago
when you got your result you get: execution time( which you're going to use), and workerId (use this too), then you can call graphql / rest api on your own machine / inside runpod ( with your api key) to remove/terminate that worker id (as pod id) https://rest.runpod.io/v1/docs#tag/pods/DELETE/pods/{podId}

Did you find this page helpful?