Good day, I was moving a worker from pods to serverless. Previously i used azure service bus to send task to my pod. And the service bus message had retry count of 5. But after migrating to the serverless endpoint i didn't find to integrate any message queue system to deliver the task to the worker container. So when it fails it only responses with errors. How i can make it to retry the same request? i didn't find anything in the documentation. I took a look into these documents: https://docs.runpod.io/serverless/workers/handlers/handler-error-handling There is something with refresh worker at https://docs.runpod.io/serverless/workers/handlers/handler-additional-controls#refresh-worker But i don't know what is the way to achieve retry mechanism by refreshing the worker.
Learn how to handle exceptions and implement custom error responses in your RunPod SDK handler function, including how to validate input and return customized error messages.
Send progress updates during job execution using the runpod.serverless.progress_update function, and refresh workers for long-running or complex jobs by returning a dictionary with a 'refresh_worker' flag in your handler.