Skip to content

Commit

Permalink
Merge pull request #26 from cleardataeng/feature/add-readiness-check-…
Browse files Browse the repository at this point in the history
…vrtx-ai

Add readiness and terminal values for vertex ai instances.
  • Loading branch information
neerajtickoo authored Dec 19, 2024
2 parents 6f625ad + 02a3086 commit ce944b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand Down
11 changes: 11 additions & 0 deletions rpe/resources/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,17 @@ class GcpNotebookInstance(GoogleAPIResource):
resource_path = "projects.locations.instances"
version = "v2"

readiness_key = "state"
readiness_value = "ACTIVE"
readiness_terminal_values = [
"STATE_UNSPECIFIED",
"STOPPING",
"STOPPED",
"DELETED",
"SUSPENDING",
"SUSPENDED",
]

required_resource_data = ["name", "location", "project_id"]

resource_type = "notebooks.googleapis.com/Instance"
Expand Down

0 comments on commit ce944b5

Please sign in to comment.