Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
root
Creator II
Creator II

Unique identifier - TOS - DI

Hello:

I have created a job which is going to perform lots of tasks. This is setup on a scheduler, runs every few minutes. 

 

What I am seeking is a type of unique identifier which can be generated for each run which I can save somewhere and reference back to. I would love to use that unique identifier and log some stats too if possible. 

 

 

I know in TESB, hosting a service via tRestRequest generates a unique correlation_id which can be used to tie up all requests/ responses.

 

Is something available in TOS_DI similar to a correlation_id?

Thank you. 

 

Labels (4)
2 Replies
TRF
Champion II
Champion II

You can get the current time when the job starts with the format yyyyMMddhhmmss. This make sense if you need to keep the trace of the moment the job has started.
Else you can use the public variable this.pid which gives you the process id for the running job.
root
Creator II
Creator II
Author

Hmm. Interesting. Is there anything else like a correlation Id available?