Ask Your Question
0

How to get the job started time and pass it into the pipeline

asked 2018-12-07 11:42:03 -0600

tdzhangbin gravatar image

The job is scheduled by a time, but I have to check the job started time which is used in query lookup. How to obtain this time.

Thanks any help.

edit retag flag offensive close merge delete

Comments

How did you schedule the job and where? Can elaborate your need ?

Shruthi gravatar imageShruthi ( 2018-12-09 03:35:43 -0600 )edit

the job is scheduled by the cron expression, but I need seconds part which is not in cron. In the query look up, I need to filter the records by a column with seconds date. How to dynamically obtain the starting time of job with seconds? Thanks.

tdzhangbin gravatar imagetdzhangbin ( 2018-12-09 05:14:07 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-10 10:36:25 -0600

iamontheinet gravatar image

Hi!

You can call REST API endpoint /jobrunner/rest/v1/job/{JOBID_GOES_HERE}/currentStatus. The JSON response will include startTime (in epoch, for example, 1544458786233) as one of the attributes which you can convert to datetime and extract time.

Cheers, Dash

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-12-07 11:42:03 -0600

Seen: 31 times

Last updated: 17 hours ago