-
Notifications
You must be signed in to change notification settings - Fork 17
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
Retrieving pipeline id in cicd pipelines #76
Comments
There's a callback that allows to plug-in some behaviour after the job is scheduled ( kedro-azureml/kedro_azureml/cli.py Line 261 in 5ae7bcf
I think you can write your own CLI for Kedro, that will replicate what is being done in our Another way would be saving the pipeline id from within the pipeline (as a Kedro dataset) and read it later from CICD pipeline. I think it's available in some AzureML-set environment variable. |
Thanks @marrrcin this seems like a great solution. I think I can do even simpler as the job studio studio url contains the pipeline name (which i did not notice before): However, would you also be open to a modification of the callback so that the intent is a bit clearer? I was thinking of something like lambda job: click.echo(f"AzureML Studio URL: {job.studio_url}"), or maybe using a more detailed callback function such as: def echo_job_info(job):
click.echo(f"Job studio url: {job.studio_url}")
click.echo(f"Azure ML Pipeline name: {job.name}") |
Sure :) |
Closing the issue following merge of #78 |
I am having a bit of trouble registering a model after launching a pipeline with kedro azureml.
Indeed, to find the actual id of the pipeline that trained the model, I currently take the most recent (with a few additional filters to make sure i get the correct one) but I don't think that is a great solution.
I noticed that the pipeline id is available in
AzureMLPipelinesClient.run
(it is justpipeline_job.name
).Is there an intelligent way to retrieve it?
I could imagine logging it to the output then do something like
pipeline_text=$(kedro azureml run ...)
and then filter
pipeline_text
to get the actual value but it seems very ugly.Plus you would need to make sure your pipeline log level is set correctly so I don't think it is ideal.
The text was updated successfully, but these errors were encountered: