Forum Discussion

sdeng's avatar
sdeng
New Contributor II
7 years ago
Solved

How to generate dynamic file name by using pipeline execute

We’re using pipeline execute to run the tasks in parallel by check Reuse executions to process documents and changed Pool Size. But in the pipeline execute called pipeline, it will generate a log file as an output. How do we generate different file names for different pipeline executions?
We tried to use date.now() in the log file, but sometimes it will generate the same file name, like if we set the pool size to 40, it will provide 39 files only, one file will be overwritten. Is there a way we can add the pipeline execute sequence something like that?

  • You can access the runtime ID for the execution using pipe.ruuid in an expression property.

5 Replies

  • tstack's avatar
    tstack
    Former Employee

    You can access the runtime ID for the execution using pipe.ruuid in an expression property.

    • sdeng's avatar
      sdeng
      New Contributor II

      Thanks, it’s working.

  • christwr's avatar
    christwr
    Contributor III

    Isn’t the RUUID the same though, when executing pipelines selecting the “reuse executions” option?

    • tstack's avatar
      tstack
      Former Employee

      Each child execution will have their own RUUID. Also, the pool size was greater than one, so there will be multiple children handling data. Assuming the filename was computed in the child, each execution would write to a separate file.

  • christwr's avatar
    christwr
    Contributor III

    Maybe a combination of RUUID and inputViews?