R
RunPod2mo 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. 🙏
4 Replies
yhlong00000
yhlong000002mo ago
you can use our graphql to terminate worker.
One@DRT
One@DRTOP4w 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
yhlong000004w ago
mutation terminatePod($input: PodTerminateInput!) {
podTerminate(input: $input)
}


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


{
"input": {
"podId": "23vja1jrs3d0h7"
}
}
One@DRT
One@DRTOP3w ago
thank you !!!
Want results from more Discord servers?
Add your server