R
RunPod10mo ago
papanton

webhooks custom updates

Does the job webhook get invoked with runpod.serverless.progress_update calls?
16 Replies
kopyl
kopyl10mo 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
papantonOP10mo ago
thank you!
flash-singh
flash-singh10mo 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
kopyl10mo ago
Oh. Since when you have this change?
flash-singh
flash-singh10mo ago
it was there all the time since we introduced progress update
justin
justin10mo 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-singh10mo ago
you mean with webhookV2?
justin
justin10mo ago
Yeah with webhookv2 as an option
kopyl
kopyl10mo ago
I don't see anything on webhookV2, it's actually a surprise for me
flash-singh
flash-singh10mo 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
justin10mo ago
Ooo interesting, haha, i was wondering why i couldn't find it on the github 👁️, was searching around for it
ashleyk
ashleyk9mo 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-singh9mo ago
yes you can use webhookV2
EMPZ
EMPZ3mo 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
yhlong000003mo ago
{
"input": {},
"webhook": "https://URL.TO.YOUR.WEBHOOK"
}
{
"input": {},
"webhook": "https://URL.TO.YOUR.WEBHOOK"
}
Encyrption
Encyrption3mo 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