Tomi
RRunPod
•Created by Tomi on 6/27/2024 in #⚡|serverless
Error Handling Issue: Updating Response Status in Python’s Runpod
Hello everyone! I encountered an issue where I need to raise an error in my handler, but I’ve found that in the Python’s runpod library, errors are added to a
job_output
list. There’s a condition where it searches for the error
field to update the response status to FAILED
. However, since the error is within an output list, it doesn’t recognize that field, and the status remains COMPLETED
.
This is my handler and here is where I raise the error
and this is the Runpod code
Any insights would be greatly appreciated!7 replies