Talend Job Start Date

Seven Stars

Talend Job Start Date

Hi,

 

I have a job which starts before midnight and ends next day.

There are multiple child jobs being called and many output files generated.

Is there any way to get the job start date during any child job execution (any component or java code to get the talend job start date) ?

 

Say, my talend job started on 01/01/2017 and ended on 02/01/2017, so if i want to know the talend job start date when my current system date is 02/01/2017, then how can i achieve it ?

 

Thanks


Accepted Solutions
Fifteen Stars TRF
Fifteen Stars

Re: Talend Job Start Date

The simplest, store the starting date into a context variable shared with child jobs.


TRF

All Replies
Fifteen Stars TRF
Fifteen Stars

Re: Talend Job Start Date

The simplest, store the starting date into a context variable shared with child jobs.


TRF
Seven Stars

Re: Talend Job Start Date

Thanks,
I am also thinking the same but was curious if we have any talend expression or component to get the talend job start date which might be useful for any other requirement.
Community Manager

Re: Talend Job Start Date

You can use the AMC functionality, but this might be a bit of overkill (https://www.rilhia.com/tutorials/talend-activity-monitoring-console-amc). Alternatively you can use the tStatCatcher component (https://www.talendbyexample.com/talend-tstatcatcher-component.html). The tStatCatcher component is technically part of the AMC, but allows you to do what you want with the data within the job.

Ten Stars

Re: Talend Job Start Date

If you just need the date, connect a tSetGlobalVar to a tPrejob component, and create a variable with the expression TalendDate.getDate("yyyy-MM-dd")

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

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now