argo-python-dsl icon indicating copy to clipboard operation
argo-python-dsl copied to clipboard

how to use with_param decorator

Open etheleon opened this issue 5 years ago • 2 comments

Description I would like to include the with_param to a task. Not sure how

Additional context

etheleon avatar May 19 '20 07:05 etheleon

I was only able to get it working by editing the object after it was created

workflow.__getattribute__("spec").templates[0].dag.tasks[0].with_param = "{{inputs.parameters.hypparams}}"

etheleon avatar May 19 '20 08:05 etheleon

@etheleon check out example here https://github.com/argoproj-labs/argo-python-dsl/blob/master/tests/workflows/loops.py

binarycrayon avatar Oct 11 '20 20:10 binarycrayon