Skip to content

Commit 6842be7

Browse files
authored
Patch pipeline_run to also use pipeline_id for pipeline_version_id (#142)
NOTE: This change enable each execution of pipeline run of same pipeline to display under the same pipeline in odh-dashboard run view Signed-off-by: Harshad Reddy Nalla <[email protected]>
1 parent 60971ed commit 6842be7

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- a/processor_kfp.py 2023-06-09 10:17:15.659461927 -0400
2-
+++ b/processor_kfp.py 2023-06-09 10:16:20.062429914 -0400
1+
--- a/processor_kfp.py 2023-06-09 10:19:08.882563609 -0400
2+
+++ b/processor_kfp.py 2023-07-13 19:31:43.572407879 -0400
33
@@ -213,6 +213,7 @@
44
credentials=auth_info.get("credentials", None),
55
existing_token=auth_info.get("existing_token", None),
@@ -8,7 +8,16 @@
88
)
99
else:
1010
client = ArgoClient(
11-
@@ -435,7 +435,7 @@
11+
@@ -416,7 +417,7 @@
12+
13+
# create pipeline run (or specified pipeline version)
14+
run = client.run_pipeline(
15+
- experiment_id=experiment.id, job_name=job_name, pipeline_id=pipeline_id, version_id=version_id
16+
+ experiment_id=experiment.id, job_name=job_name, pipeline_id=pipeline_id, version_id=pipeline_id
17+
)
18+
19+
except Exception as ex:
20+
@@ -435,7 +436,7 @@
1221

1322
self.log_pipeline_info(
1423
pipeline_name,
@@ -17,13 +26,13 @@
1726
duration=time.time() - t0,
1827
)
1928

20-
@@ -451,7 +451,7 @@
29+
@@ -451,7 +452,7 @@
2130

2231
return KfpPipelineProcessorResponse(
2332
run_id=run.id,
2433
- run_url=f"{public_api_endpoint}/#/runs/details/{run.id}",
2534
+ run_url=f"{public_api_endpoint}/{run.id}",
2635
object_storage_url=object_storage_url,
2736
object_storage_path=object_storage_path,
28-
)
2937

38+
)

0 commit comments

Comments
 (0)