You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Best to distinguish CreateTime and StartTime in StepExecutionย #4049
I need to record create time of StepExecution, but I found it only has a filed startTime, though this field has been assigned value when StepExecution is created.
private volatile Date startTime = new Date(System.currentTimeMillis());
But its value will be updated when StepExecution gets started in AbstractStep.
Schema updates, table bath_step_execution needs a new column create_time.
Class StepExecution needs a new filed createTime.
SQL in org.springframework.batch.core.repository.dao.JdbcStepExecutionDao#SAVE_STEP_EXECUTION, org.springframework.batch.core.repository.dao.JdbcStepExecutionDao#GET_RAW_STEP_EXECUTIONS, and org.springframework.batch.core.repository.dao.JdbcStepExecutionDao#GET_LAST_STEP_EXECUTION need to be updated to include create_time.
Activity
lcmarvin commentedon Jan 26, 2022
This requires following changes at least:
bath_step_executionneeds a new columncreate_time.StepExecutionneeds a new filedcreateTime.org.springframework.batch.core.repository.dao.JdbcStepExecutionDao#SAVE_STEP_EXECUTION,org.springframework.batch.core.repository.dao.JdbcStepExecutionDao#GET_RAW_STEP_EXECUTIONS, andorg.springframework.batch.core.repository.dao.JdbcStepExecutionDao#GET_LAST_STEP_EXECUTIONneed to be updated to includecreate_time.lcmarvin commentedon Feb 8, 2022
Please refer to PR #4057
lcmarvin commentedon Apr 16, 2022
Could you please link another pull request #4099 to this issue? Since a wrong rebase was done by mistake in #4057, so I close it.
Sorry for that, Thanks๏ผ
Distinguish CreateTime and StartTime in StepExecution
Distinguish CreateTime and StartTime in StepExecution