Open daro1337 opened 1 month ago
This issue is critical to us since we have hundreds of pipelines that use the conditions to conditionally preprocess datasets. @juliusvonkohout FYI.
@rimolive maybe something for 1.9.1
@juliusvonkohout FYI It looks like central dashboard does not support Optional
field (all are mandatory) also default
value does not work in central dashboard :(
@juliusvonkohout FYI It looks like central dashboard does not support
Optional
field (all are mandatory) alsodefault
value does not work in central dashboard :(
@daro1337 you might want to ask @thesuperzapper about this.
I was able to successfully pass a default value given this snipped. @daro1337
@dsl.pipeline(name="pipeline-with-loop-output-v2")
def my_pipeline(size: Optional[int] = 5):
print_before_parallel = print_op(s="something before parallel")
args_generator = args_generator_op(size=size)
# parallelism is being ignored. There's an open issue about this
with dsl.ParallelFor(args_generator.output, parallelism=10) as item:
print_op_sleep(s=item).after(print_before_parallel)
Environment
Steps to reproduce
Conditions in the
component.yaml
file are not working correctly. It appears that the argo-workflow component takes the "IF" condition argument literally.This is something that worked in kubeflow v1.8.0 and KFP 1.8.X (argoworkflow manifest)
here we I wrote dummy pipeline that prints /etc/hosts file. If
line_number=true
it should add-n
argument tocat
executable to print file with line numbers.inputs:
implementation: container: args:
Output:
as you can see here:
cat: can't open '{"IfPresent": {"InputName": "line_number", "Then": ["-n"]}}': No such file or directory
Expected result
Print file with line numbers for instance:
Materials and Reference
test example that should cover this usecase: https://github.com/kubeflow/pipelines/blob/master/backend/src/apiserver/server/test/xgboost_sample_pipeline.yaml#L304
Impacted by this bug? Give it a 👍.