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

Possibility to passs runtime parameters to compiled pipeline #154

Open
andrewrussell-sky opened this issue Mar 28, 2024 · 1 comment
Open

Comments

@andrewrussell-sky
Copy link

Hello,

Im am just enquiring to find out if the is an option to configure runtime parameters for the compiled vertex pipeline? I have a requirement to set seperate run names at runtime of my vertex pipeline.

I can't quite figure out from the documentation if this is possible using the plugin. Thanks for your help

@Neuron1c
Copy link

Neuron1c commented Apr 3, 2024

Unfortunatly you cannot with compile alone. Depending on how you intend to run your jobs you might try use the vertexai client library. You can specify the name of the job when starting the run

from kfp.v2.google.client import AIPlatformClient

client = AIPlatformClient(project_id={GCP_PROJECT}, region={GCP_REGION})

client.create_run_from_job_spec(
    service_account={GCP_SERVICE_ACCOUNT}, # or use default
    job_spec_path="pipeline.json",
    job_id={YOUR_RUN_NAME},
    pipeline_root=f"gs://{GCP_BUCKET}",
    )

Make your run name whatever you need it to be from there when submitting the job. If you want to schedule the job using the scheduler and have it change the name (say add datetime to the end of your run name) then you are on your own. I found the tool lacking greatly. But if you do find a solution that works for you do share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants