R
RunPod11mo ago
papanton

webhooks custom updates

Does the job webhook get invoked with runpod.serverless.progress_update calls?
16 Replies
kopyl
kopyl11mo ago
No, the job webhook is only invoked when the job is completed, failed, or timed out. The runpod.serverless.progress_update calls are for sending progress updates to the /status endpoint and do not trigger the webhook.
papanton
papantonOP11mo ago
thank you!
flash-singh
flash-singh11mo ago
yes they are included with webhooks our new version of webhook includes even in progress events but doesn't include input anymore, use webhookV2 instead of webhook
kopyl
kopyl11mo ago
Oh. Since when you have this change?
flash-singh
flash-singh11mo ago
it was there all the time since we introduced progress update
justin
justin11mo ago
https://docs.runpod.io/serverless/endpoints/send-requests Wish docs get updated or maybe i should dive into the library to see if there is comments in the code huh
Send a request | RunPod Documentation
The method in which jobs are submitted and returned.
flash-singh
flash-singh11mo ago
you mean with webhookV2?
justin
justin11mo ago
Yeah with webhookv2 as an option
kopyl
kopyl11mo ago
I don't see anything on webhookV2, it's actually a surprise for me
flash-singh
flash-singh11mo ago
yep i coded it but not sure if its the best way to release the change so its sort of hidden for now, also thinking of updating all endpoints to v3
justin
justin11mo ago
Ooo interesting, haha, i was wondering why i couldn't find it on the github 👁️, was searching around for it
ashleyk
ashleyk10mo ago
Whats the latest on webhookV2? Can people use it or is it in development or must we wait for endpoints to be updated to v3? I'm confused.
flash-singh
flash-singh10mo ago
yes you can use webhookV2
EMPZ
EMPZ5mo ago
Can someone give me the TL;DR; for serverless webhooks? I've just started with RunPod and I'm planning to host some production inference jobs. Should I be using webhook or webhookV2?
yhlong00000
yhlong000005mo ago
{
"input": {},
"webhook": "https://URL.TO.YOUR.WEBHOOK"
}
{
"input": {},
"webhook": "https://URL.TO.YOUR.WEBHOOK"
}
Encyrption
Encyrption5mo ago
You can also provide updates, that you can check using the status API call.
runpod.serverless.progress_update(job, {'WS_URL': WS_URL})
runpod.serverless.progress_update(job, {'WS_URL': WS_URL})
In this example I am I am providing Web socket URL as an update. This works with async RUN call.
Want results from more Discord servers?
Add your server