0

I have 100 source files to push through a pipeline. Is there a pattern for looping over a list, generating a new source and output file name each time for the same pipeline?

Thanks!

GlaceCelery
  • 921
  • 1
  • 13
  • 30

1 Answers1

1

If you can elaborate more, that would be helpful, but maybe something like this is what you are looking for?

dvc.yaml

stages:
  example:
    foreach: ${some_param}
    do:
      cmd:
        - echo ${item}

params.yaml

some_param:
  - files/file1
  - files/file2
  - files/file3

dabarnes
  • 173
  • 1
  • 5