logging job start and end datetime

Highlighted
One Star

logging job start and end datetime

When the job has finished succesfully, i want to save via tPostgreSQLSP (myLogFunction (date, date)) the job start and end -datetime-
How do i retrieve those variables and send them to my tPostgreSQLSP when the job has finished?
Regards
Highlighted
Five Stars

Re: logging job start and end datetime

Hi,
you can use tChronometerStart and tChronometerStop components to catch start and end date. if you have a java project manipulate those variables to deduce your end date : ((String)globalMap.get("tChronometerStop_1_DURATION")) // tChronometerStart_1 is the name of your Start componenent
((String)globalMap.get("tChronometerStart_1_STARTTIME")) //tChronometerStop_1 is the name of your Stop componenent

Regards,
Youssef
Highlighted
One Star

Re: logging job start and end datetime

And if i don't have a java project, im just using a talend job... After the chronometer stop, can i use any component to get those variables and then send them to my tpostgreSQLSP?
Highlighted
Five Stars

Re: logging job start and end datetime

there is two kinds of Talend projects, Java and Perl? which one do you use?
Highlighted
One Star

Re: logging job start and end datetime

Java.. sorry, i did not understand your previous comment

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog