How to get the TAC job name from talend job

One Star

How to get the TAC job name from talend job

Hi,
We are using Talend Administrator Center (TAC) for scheduling Talend jobs. I would like to know how get the TAC job name inside talend job? I need this in order to know which TAC job is failed so that it can be included in notification email? using tAssetCatcher I am able to get the actual talend job name, but with that operation team is facing difficult to identify the associated TAC job name to look into the log.
Thanks.
Nine Stars JR
Nine Stars

Re: How to get the TAC job name from talend job

I am assuming you want to get the task name instead of the job name, correct? If yes, you can create a context variable in the job and override the value on the task in the TAC to the task's name. The job itself will never know how it has been started and therefore cannot know about the task name in the TAC.
Highlighted
One Star

Re: How to get the TAC job name from talend job

I actually need to know the TAC job name to notify the dev-ops teams that so and so job failed.
Example:
TAC Job Name: DELTA_RSS_DATA_INGESTION
Talend Job Name: ingestRssDeltaData
I want to know TAC job name with in "ingestRssDeltaData". I don't want to hard code job name in talend job context variables.
Nine Stars JR
Nine Stars

Re: How to get the TAC job name from talend job

No need to hard code the job name. Simply create a context variable in your job (e.g. tacTaskName) and leave it NULL. In the Job Conductor in the TAC you then select the job, click on "Context Parameters" at the bottom and override the value to the name of the task (DELTA_RSS_DATA_INGESTION). This runtime value will then be used in your job and you can access it via context.tacTaskName.
Community Manager

Re: How to get the TAC job name from talend job

Or you could create a more generic solution using the Talend Metaservlet (https://help.talend.com/search/all?query=Talend+Administration+Center+MetaServlet+API&content-lang=e...).

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now