Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 jimbo20814
		
			jimbo20814
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		What is the core difference between tDie and tJobFailure? And when should one use one over the other? I want to simply stop the job (and parent job) from running when an error occurs. Both seem to do exactly that and both use tLogCatcher so I'm wondering what the core difference(s) is.
 srota25
		
			srota25
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 jeoste
		
			jeoste
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		tDie can be used with TOS, it's a free component.
tJobFailure exist in Big Data studio.
I don't know the second one, but the first one do the job you want to.
Here's two examples : first one the first subjob is OK, so the flow continues to the second subjob and print "Success : OK"
The second one, I've created an error, so the first subjob failed and the second subjob don't print anything
The message highlighted in the second screenshot is the message defined inside the tDie component
My opinion : it's better to use this component, more commons than the other one, and do the same job.
Hope it helps !
 jeoste
		
			jeoste
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		tDie component is free and can be used in TOS
tJobFailure is for the Big Data studio and is premium
My opinion : because I don't know much about the tJobFailure component, I would use the tDie component which do the same job as the second one (referring to the official documentation).
Here's a concret example with tDie to prove it
First one, the first subjob is KO, so tDie component write "Subjob failed KO" in the console (highlighted). The second subjob don't start.
This is the second part, first subjob is OK, so the second subjob is executing and print "Success : OK".
