GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(PipelineJob): use name as output only field by ji-yaqi · Pull Request #719 · googleapis/python-aiplatform

Conversation

@ji-yaqi

@ji-yaqi ji-yaqi commented Sep 20, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Previously, create_time is used to identify whether a job has been created. Now since we have job_id fixed, we could leave name out for output only and identify whether a job has been created using name.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ji-yaqi
fix(PipelineJob): use name as output only field
032d9cd
@product-auto-label product-auto-label Bot added the api: aiplatform Issues related to the AI Platform API. label Sep 20, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 20, 2021
@ji-yaqi
ji-yaqi requested review from ivanmkc, sasha-gitg and vinnysenthil September 20, 2021 18:30
ivanmkc
ivanmkc approved these changes Sep 20, 2021
View reviewed changes

@ivanmkc ivanmkc left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread google/cloud/aiplatform/pipeline_jobs.py

pipeline_name = pipeline_job["pipelineSpec"]["pipelineInfo"]["name"]
job_id = job_id or "{pipeline_name}-{timestamp}".format(
self.job_id = job_id or "{pipeline_name}-{timestamp}".format(

@ivanmkc ivanmkc Sep 20, 2021

Copy link
Copy Markdown
Contributor

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.

I know this is existing code, but why isn't there a way to get the job_id directly from the service instead of deriving it in the client SDK.

This seems like it could break if the service changes how job ID's are generated.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ji-yaqi ji-yaqi Sep 20, 2021

Copy link
Copy Markdown
Contributor Author

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.

I think job_id was provided by the user, or generated by the system and only used during run command but not the instance generation process. That's why we need to store it somewhere, since it wasn't used during the instance creation.

Name shouldn't be passed in since it was an output-only field and was wrongly passed in previously. Although the services generated the name using the same way.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ji-yaqi
Merge branch 'main' into master
8e520d5
@ji-yaqi

ji-yaqi commented Sep 21, 2021

Copy link
Copy Markdown
Contributor Author

/retest

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ji-yaqi
Merge branch 'main' into master
690ec7c
@ji-yaqi
ji-yaqi merged commit 1c84464 into googleapis:main Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vinnysenthil vinnysenthil Awaiting requested review from vinnysenthil
@sasha-gitg sasha-gitg Awaiting requested review from sasha-gitg
1 more reviewer
@ivanmkc ivanmkc ivanmkc approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: aiplatform Issues related to the AI Platform API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ji-yaqi @ivanmkc
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.