Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Our requirement is when Talend job successfully complete without any error,Then Talend graph should return 1 so this number can be accepted by another script and can perform other activity.
How to achieve this requirement in Talend. Please assist.
Regards,
Vivek
@vivek_u ,if you want to return the values ,then you can use tJava component on success of the the job and print the value which wan to return.
Hi,
Where to put t java component and where to find event called 'on success of the the job' Can you elaborate and show how to design that.
Regards,
Vivek
I assume you run Talend through unix environment as exported job.
When calling the talend job
./talendjob.sh
result = $?
or
result= ./talendjob.sh
Now result would hold either 1 or 0 depending of the success of talendjob.sh
Thanks Vignesh.
However we would like to know how to achieve this is in Talend job (related design and on which event) ?
Regards,
Vivek
Hi,
How are you planning to deploy and run the job in PROD? after development.
That plan is needed to get information of triggering another job on this jobs success or failure
If you are going to trigger another TalenD job then you can have job 1 and job 2 as sub jobs in job 3. with condition tigger "on subjob OK" linked from job 1 to job 2. use tRunJob component to create subjobs in talend.
Are you looking for execution Plan on TAC ?
https://help.talend.com/reader/GL_4g5KgOuy9xQdPC2EzSQ/y0Us7J_ukdgxhe9Jx_o_NQ
We have only one main job where all components are designed.
This is not working... subjob ok is always executing only one condition even component thrown error as well
Hi,
Did you print and verify the value which is getting returned from the job?
Based on the return value, if you want to trigger another job, you can also try Run if condition.
Say, run Job B if return value is 1. Run Job C if return value is 0.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂