Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
There are many master jobs which contains multiple sub-jobs. If any sub-job gets failed, we are not getting details about master job. If we can get the master job, then easily we can get the location of issue. Otherwise, we have to check manually. Please guide.
Thanks,
Amit
Hi
There is a global variable (jobName) that stores the current job name, you can pass the master job name to child job if you need to use the master job name in child job. eg:
// mainJobName is a context variable defined in child job, it will stores the master job name.
Regards
Shong
Hi Shong,
This is my job in which I have three sub-jobs. After using the context parameters, it fails all the sub-jobs.
I have used the context parameters like this in the below screenshot in all the tables I have put the same Parameters = MasterJob and values = MainJob.
And Declared the Master context in each child job. Even I created same context in Master Job as well.
Please guide to finish it.
Thanks for your support and response.
Thanks,
Amit
the global variable's name is: jobName, so change the value from 'MainJob' to 'jobName' on tRunJob component.
Thanks Shong for clarifying. It worked for me.
I got the Master job Name through mail.
Can we get anyhow sub-job and master job both the names through the mail??
Please Guide!
Thanks
the global variable exists in each job, if you print the value of global variable in child job, you will get the child job's name.
Hi Shong,
Currently I have generated failure in third sub-job and getting the details for the failure through the mail.
Please check the below screenshots:
Failure details through mail:
In this whether I am using Global variable or not. I am getting
job = MasterJobName only. I am not sub-job (EmpJoinDept) Name which I want to see. I tried to create a context storing sub-job name and calling through the mail, but I couldn't get the sub-job name. Only MasterJobName is coming. At the end I want to achieve both the master and sub-job Name in the mail..Hope it is clear now.
Please guide.
Thanks,
Amit
Hi
From your screenshots, I think understand what you expect, in this case, you are using tLogCatcher to catch the error and send an email in main job, the 'Origin' column tells you which component has the error, you can customize these information by linking tLogCatcher to a tMap, update the column's value or add extra columns, for example, add a new column in the output table, let's call it 'childJobName', and set its value as:
row1.Origin.equals("tRunJob_3")?"real_child_name3":(row1.Origin.equals("tRunJob_2")?"real_child_name2":"real_child_name1")
Hope it is clear!
Regards
Shong
Thanks for the info, I appreciate you.