R
RunPod5mo ago
One@DRT

API to remove worker from endpoint - please!

Sometimes one worker in endpoint fails because of internal errors, misconfiguration, out of space (because of memory purging errors) and etc (happens in less than 1%). Unfortunately this worker will generate endless errors and each task going to that worker will fail . So it is always a job to be done by logging in to account and manually kicking that worker out of endpoint to stop errors. Definitely need an API to be able to kick unhealthy workers from endpoints. 🙏
8 Replies
yhlong00000
yhlong000005mo ago
you can use our graphql to terminate worker.
One@DRT
One@DRTOP4mo ago
Thanks, can you help me finding that in your docs please, I see only WorkerState - https://graphql-spec.runpod.io/#definition-WorkerState As i am looking to terminate the worker inside serverless.
yhlong00000
yhlong000004mo ago
mutation terminatePod($input: PodTerminateInput!) {
podTerminate(input: $input)
}


{
"input": {
"podId": "23vja1jrs3d0h7"
}
}
mutation terminatePod($input: PodTerminateInput!) {
podTerminate(input: $input)
}


{
"input": {
"podId": "23vja1jrs3d0h7"
}
}
One@DRT
One@DRTOP4mo ago
thank you !!!
One@DRT
One@DRTOP3mo ago
Can't make it work, have 500 Internal Server Error response. Important note that I am talking about serverless worker, not pod.
No description
nerdylive
nerdylive3mo ago
https://api.runpod.io/graphql?api_key={{auth}} hey your url should look like this
One@DRT
One@DRTOP2mo ago
the authorization was set up in auth part and that was the issue, thanks a lot!
nerdylive
nerdylive2mo ago
Your welcome!

Did you find this page helpful?