Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
billimmer
Creator III
Creator III

How to Detect if a job is running as a subjob?

Is there a way to check if my job is running as a sub-job (through tRunJob) vs running as the primary "main" job?

Thanks!

Labels (2)
1 Solution

Accepted Solutions
billimmer
Creator III
Creator III
Author

even better. There is a variable called isChildJob you can use.

View solution in original post

2 Replies
billimmer
Creator III
Creator III
Author

Ok, figured it out. Compare the pid against the rootPid. If they are different, the job is running as a subjob.

billimmer
Creator III
Creator III
Author

even better. There is a variable called isChildJob you can use.