Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
tPrejob and tPostjob are great when you need execute given tasks, before and after your job. Unlike other components, these components do not process data and cannot be configured. They always execute, even if the main job fails, making them great for tasks that need to be completed even if the job is not successful.
Some scenarios in which you might need to use tPrejob include:
On the other hand, you might use tPostjob to:
These components are added to jobs the same way any other components are, simply click and drag them from the palette or search for them by clicking on the canvas. All you need to do after that is connect them to your subjob using an “OnComponentOk” connection. Bellow, is an example of tPrejob and tPostjob being utilized.
And the Advanced settings of tDie : Exit JVM immediately ? tPrejob_1 -> tPostgresqlConnection_1 --[OnSubjobError]--> tDie
Hi, i've got a problem with the Postjob execution
In my simple test case here :
What i expect : Tdie Error then Only execute the Postjob part
Try 1 => tDie advanced option set with checked "Exit the JVM immediately"
What i got = Tdie Error and no Postjob execution
Try 2 => tDie advanced option set with unchecked "Exit the JVM immediately"
What i got = Tdie Error and Main Part execution and Postjob execution
The only solution i found to have what i expect is using a empty tJava with if link on the tDie CODE:
So the tPostjob isnt working in any case ?
@martel This is just a simple test to deal with tDie and PostJob
In fact what i really need is that tPostjob part (whatever it contains) execute in anycase
But stopping job execution in case of tDie (DB connection error, missing file...)