How to get progress updates from Runpod?
Hi all - my goal is to get progress updates from a job request - presently I'm polling a job status request every two seconds, and I would like to get feedback of the % completed.
Looking through the documentation, I'm updated the handler function in
rp_handler.py
by adding the following code:
I was expecting a new key "progress" in my status request response body - but it's not there? What should I be doing - perhaps have I misunderstood the documentation?
Here is the request status:
4 Replies
I don't get the code, I think the progress update should be indented
And return is only once yeah
data -> output
Apologies, I was on my phone when posting so it didn't format correctly. The code snippet for showing progress is:
So I think I should be removing the "return" line as there is already a return for a successful completion in
rp_handler.py
. The question is then, where should I output update_number
?I think that is a correct way to use progress updates already