-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add vertex runner #429
Conversation
There was a problem hiding this 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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good spot, updated!
src/fondant/runner.py
Outdated
|
||
self.aip = aip | ||
|
||
def __init__(self, project_id: str, project_region: str, service_account: str = ""): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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): |
src/fondant/runner.py
Outdated
if self.service_account: | ||
job.submit(service_account=self.service_account) | ||
else: | ||
job.submit() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
adresses: #417