-
metadata:
name: gpu-job-test
namespace: argo
selfLink: /apis/argoproj.io/v1alpha1/namespaces/argo/workflowtemplates/gpu-job-test
uid: 03355f1c-738a-49d3-88a8-3e677593d6f4
resourceVersion: '627875'
generation: 1
creationTimestamp: '2021-05-28T09:31:11Z'
labels:
example: 'true'
workflows.argoproj.io/creator: system-serviceaccount-argo-argo-server
spec:
templates:
- name: steps
inputs: {}
outputs: {}
metadata: {}
dag:
tasks:
- name: n1
template: job
arguments:
parameters:
- name: msg
value: n1
- name: n2
template: job
arguments:
parameters:
- name: msg
value: n2
dependencies:
- n1
- name: n3
template: job
arguments:
parameters:
- name: msg
value: n3
dependencies:
- n1
- name: n4
template: job
arguments:
parameters:
- name: msg
value: n4
dependencies:
- n3
- name: n5
template: job
arguments:
parameters:
- name: msg
value: n5
dependencies:
- n2
- name: job
inputs:
parameters:
- name: msg
outputs: {}
metadata: {}
container:
name: ''
image: IMAGE_NAME
env:
- name: MESSAGE
value: '{{inputs.parameters.msg}}'
resources:
limits:
cpu: '14'
memory: 127Gi
nvidia.com/gpu: '1'
requests:
cpu: '7'
memory: 63Gi
nvidia.com/gpu: '1'
entrypoint: steps
arguments: {}
ttlStrategy:
secondsAfterCompletion: 300
podGC:
strategy: OnPodCompletion
metadata:
name: webhook
namespace: argo
selfLink: /apis/argoproj.io/v1alpha1/namespaces/argo/sensors/webhook
uid: a820d9c5-4210-410b-9358-e03f39464a7c
resourceVersion: '9091523'
generation: 13
creationTimestamp: '2021-05-27T07:57:22Z'
finalizers:
- sensor-controller
spec:
dependencies:
- name: test-dep
eventSourceName: webhook
eventName: test
triggers:
- template:
name: webhook-sensor-test
argoWorkflow:
source:
resource:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: gpu-job-test
namespace: argo
operation: submit
group: argoproj.io
version: v1alpha1
resource: workflows
template:
serviceAccountName: operate-workflow-sa I saw this discussion and tried to make similar one. How can I fix this error? It seems that the sensor fails to find the workflow template "gpu-job-test". |
Beta Was this translation helpful? Give feedback.
Answered by
whynowy
Jun 14, 2021
Replies: 1 comment 1 reply
-
You are using
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
minty99
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are using
operation: submit
a workflow, so a complete workflow spec needs to be specified, to reference a template in the workflow spec, please check workflow docs.