logging job start and end datetime

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
One Star

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
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?
One Star

Re: logging job start and end datetime

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

Re: logging job start and end datetime

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

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download