File tree 2 files changed +9
-11
lines changed
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -849,8 +849,15 @@ def _compile_workflow_template(self):
849
849
Metadata ()
850
850
.labels (self ._base_labels )
851
851
.label ("app.kubernetes.io/name" , "metaflow-task" )
852
- .annotations (annotations )
853
- .annotations (self ._base_annotations )
852
+ .annotations (
853
+ {
854
+ ** annotations ,
855
+ ** self ._base_annotations ,
856
+ ** {
857
+ "metaflow/run_id" : "argo-{{workflow.name}}"
858
+ }, # we want pods of the workflow to have the run_id as an annotation as well
859
+ }
860
+ )
854
861
)
855
862
# Set the entrypoint to flow name
856
863
.entrypoint (self .flow .name )
Original file line number Diff line number Diff line change @@ -669,15 +669,6 @@ def create_job_object(
669
669
for name , value in system_annotations .items ():
670
670
job .annotation (name , value )
671
671
672
- (
673
- job .annotation ("metaflow/run_id" , run_id )
674
- .annotation ("metaflow/step_name" , step_name )
675
- .annotation ("metaflow/task_id" , task_id )
676
- .annotation ("metaflow/attempt" , attempt )
677
- .label ("app.kubernetes.io/name" , "metaflow-task" )
678
- .label ("app.kubernetes.io/part-of" , "metaflow" )
679
- )
680
-
681
672
return job
682
673
683
674
def create_k8sjob (self , job ):
You can’t perform that action at this time.
0 commit comments