Logging processing time of a job

One Star Sam
One Star

Logging processing time of a job

Hi,
I am looking at logging processing info of a job into flat files.
I used tChronometerStart/Stop to measure time taken by my job and it works perfectly fine but is it there a way I can store it in a flat file?
Thanks.
One Star Sam
One Star

Re: Logging processing time of a job

Hi,
I am using tStatCatcher for capturing the log in a flat file.
Thanks
Community Manager

Re: Logging processing time of a job

Hi
There is a global variable ((Long)globalMap.get("tChronometerStop_1_DURATION")) available on tChronometerStop component, this variable counts the duration time between tChronometerStart and tChronometerStop. For example:
tChronometerStart
|
onsubjobok
|
a processing of a subjob
|
onsubjobok
|
tChronometerStop
|
tFixedFlowInput--main--tFileOutputDelimited
on tFixedFlowinput, define a column called duration, and set its value as :
((Long)globalMap.get("tChronometerStop_1_DURATION"))
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star Sam
One Star

Re: Logging processing time of a job

Hi Shong,
Thanks a lot!! I am able to capture processing time Smiley Happy

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 2

Part 2 of a series on Context Variables

Blog

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