job.getDateStarted() of START_WORKFLOW jobs is not correct

Steps to reproduce

Steps to reproduce:
1. Start a workflow on an event
2. Have a look at job.getDateStarted() while the workflow is running

Actual Results:
The job.getDateStarted() for the START_WORKFLOW job (job representing the workflow) changes over time. It seems to be set to the job.getDateStarted() of the most recently started sub job.

Expected Results:
The job.getDateStarted() for the START_WORKFLOW job (job representing the workflow) should be initialized once when the job is started and remain then.

Workaround (if any):

Activity

Show:
James Perrin
November 5, 2018, 3:15 PM

ServiceRegistryInternal updates DateStarted of jobs with status RUNNING regardless of whether it has been previously set. I guess most operations other than START_WORKFLOW don't get updated once running. The error in also present in 4.x and 5.x

James Perrin
November 5, 2018, 3:25 PM

Side note, I think we are storing an unnecessary date field; the queue time can be derived from the created and start dates.

James Perrin
November 5, 2018, 3:39 PM
Edited

This ticket did something similar for the completion dates

James Perrin
November 5, 2018, 4:24 PM

I'm going to submit against 5.x as was also

Assignee

James Perrin

Reporter

Sven Stauber

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Minor
Configure