Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vertex runner #429

Merged
merged 4 commits into from
Sep 15, 2023
Merged

Add vertex runner #429

merged 4 commits into from
Sep 15, 2023

Conversation

GeorgesLorre
Copy link
Collaborator

@GeorgesLorre GeorgesLorre commented Sep 12, 2023

adresses: #417

Copy link
Contributor

@PhilippeMoussalli PhilippeMoussalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Georges!

pyproject.toml Outdated
@@ -53,13 +53,14 @@ s3fs = { version = ">= 2023.4.0", optional = true }
adlfs = { version = ">= 2023.4.0", optional = true }
kfp = { version = "2.0.1", optional = true }
pandas = { version = ">= 1.3.5", optional = true }
google-cloud-aiplatform = "^1.32.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add it as optional similar to the above?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good spot, updated!

@GeorgesLorre GeorgesLorre marked this pull request as ready for review September 13, 2023 07:16

self.aip = aip

def __init__(self, project_id: str, project_region: str, service_account: str = ""):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def __init__(self, project_id: str, project_region: str, service_account: str = ""):
def __init__(self, project_id: str, project_region: str, service_account: t.Optional[str]=None):

https://github.com/googleapis/python-aiplatform/blob/0fa47aea08b635159e9c6dc64f7d330f047dfb5d/google/cloud/aiplatform/preview/jobs.py#L232

Comment on lines 111 to 114
if self.service_account:
job.submit(service_account=self.service_account)
else:
job.submit()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if self.service_account:
job.submit(service_account=self.service_account)
else:
job.submit()
job.submit(service_account=self.service_account)

with the above suggestion, since the service account defined in submit() can be optional

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@GeorgesLorre GeorgesLorre merged commit 0340e0b into feature/kfp-v2 Sep 15, 2023
@GeorgesLorre GeorgesLorre deleted the feature/vertex-runner branch September 15, 2023 07:45
GeorgesLorre added a commit that referenced this pull request Sep 29, 2023
GeorgesLorre added a commit that referenced this pull request Oct 2, 2023
GeorgesLorre added a commit that referenced this pull request Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants