runpod-python icon indicating copy to clipboard operation
runpod-python copied to clipboard

Retrieve Pod machine readiness info from get pod API calls

Open dvejmz opened this issue 1 year ago • 0 comments

Retrieve the following additional properties of a pod (or a set of pods) machine from the runpod GraphQL API when running the get_pod or get_pods calls:

  • Upcoming machine maintenance
  • Requested GPU availability

This enables use cases where people want to query the readiness of their pods so they can safely and automatically launch them, scale them or send notifications when the readiness status of the pods changes.

I've updated the unit tests and ensured they all pass.

~~I've also added nest-asyncio to the requirements.txt, as it was missing and without it the unit tests fail. There are some unit test failures present but none of them are related to this change as they are also failing on the HEAD of main.~~

(EDIT: nevermind about the unit tests, I had set up the project incorrectly. All unit tests pass now)

dvejmz avatar Mar 29 '24 15:03 dvejmz