35
35
template : groupby-lines
36
36
- - name : infer-api
37
37
template : infer-api
38
+ arguments :
39
+ artifacts :
40
+ - name : grouped
41
+ from : " {{workflow.outputs.artifacts.grouped}}"
38
42
- - name : trigger-github-action
39
43
template : trigger-github-action
40
44
- name : record-api
@@ -58,14 +62,19 @@ spec:
58
62
- name : data
59
63
mountPath : /tmp/vol
60
64
- name : groupby-lines
65
+ outputs :
66
+ artifacts :
67
+ - name : grouped
68
+ path : /tmp/grouped.jsonl
69
+ globalName : " grouped"
61
70
container :
62
71
image : " {{workflow.parameters.base-image}}"
63
72
command : [python, -m, record_api.line_counts]
64
73
env :
65
74
- name : PYTHON_RECORD_API_INPUT
66
75
value : /tmp/vol/raw.jsonl
67
76
- name : PYTHON_RECORD_API_OUTPUT
68
- value : /tmp/vol/ grouped.jsonl
77
+ value : /tmp/grouped.jsonl
69
78
resources :
70
79
requests :
71
80
memory : 6Gi
@@ -77,11 +86,15 @@ spec:
77
86
- name : data
78
87
mountPath : /tmp/vol
79
88
- name : infer-api
89
+ inputs :
90
+ artifacts :
91
+ - name : grouped
92
+ path : /tmp/grouped.jsonl
80
93
outputs :
81
94
artifacts :
82
95
- name : api
83
96
path : /tmp/api.json
84
- globalName : ' api'
97
+ globalName : " api"
85
98
container :
86
99
image : " {{workflow.parameters.base-image}}"
87
100
command : [python, -m, record_api.infer_apis]
@@ -91,19 +104,16 @@ spec:
91
104
- name : PYTHON_RECORD_API_MODULES
92
105
value : pandas,numpy
93
106
- name : PYTHON_RECORD_API_INPUT
94
- value : /tmp/vol/ grouped.jsonl
107
+ value : /tmp/grouped.jsonl
95
108
- name : PYTHON_RECORD_API_OUTPUT
96
109
value : /tmp/api.json
97
110
resources :
98
111
requests :
99
- memory : 1Gi
100
- cpu : 500m
112
+ memory : 6Gi
113
+ cpu : 100m
101
114
limits :
102
- memory : 8Gi
115
+ memory : 16Gi
103
116
cpu : 4000m
104
- volumeMounts :
105
- - name : data
106
- mountPath : /tmp/vol
107
117
- name : trigger-github-action
108
118
container :
109
119
image : " curlimages/curl"
0 commit comments