cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate dynamic file name by using pipeline execute

sdeng
New Contributor II

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?

1 ACCEPTED SOLUTION

tstack
Former Employee

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

View solution in original post

5 REPLIES 5

tstack
Former Employee

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

sdeng
New Contributor II

Thanks, it’s working.

christwr
Contributor III

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

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.