webhooks custom updates

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

Did you find this page helpful?