Possible error in docs: Status of a job with python code
In the docs, there is this command to retrieve the status of a submitted job:
And in the docs, this should be the equivalent python code:
But I do not want to start a job again, I just want to retrieve the status of the job (by the job_id, enpoint_id and api_key). I gues this is a small error in the docs, or isn't there a way to retrieve the status of a job by these parameters, as it is possible with curl?
10 Replies
May you post the link to the doc page you are using?
Thank you, yes this appears to be outdated, and in the process of getting updated. Checkout https://github.com/runpod/runpod-python/blob/main/examples/endpoints/run.py for an example.
For visibility: @PatrickR
Okay, so retrieving the status of a job by its id and enpoint_id is not possible yet (in python code)? In the example it is also done with the run_request object, but this is not JSON-serializable.
I see what you are asking, checking to see if this needs to be added or just missing docs.
cc: @nathaniel
okay, thanks
Here https://github.com/runpod/runpod-python/blob/5645bb1758c9725d7dd914f127df1047293b9d7c/runpod/endpoint/runner.py#L93
The following should work:
Looks like we just need to add an example to the docs for this.
The argument 'client' is required, and I am not really sure what this is or how I can get this
Solution
My apologies
Try that, looks like we need to expose a couple more things for the next release.
solved! Thanks for the quick help