Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3278 from Netflix/tasks/MWI-4643
Browse files Browse the repository at this point in the history
Set scheduledTime and startTime with currentTime for all system tasks
  • Loading branch information
skorse authored Oct 10, 2022
2 parents b5e3f1b + cc7b330 commit ffa4210
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ public List<TaskModel> createTasks(List<TaskModel> tasks) {
// update the task_lookup table
tasks.forEach(
task -> {
task.setScheduledTime(System.currentTimeMillis());
if (task.getScheduledTime() == 0) {
task.setScheduledTime(System.currentTimeMillis());
}
session.execute(
updateTaskLookupStatement.bind(
workflowUUID, toUUID(task.getTaskId(), "Invalid task id")));
Expand Down

0 comments on commit ffa4210

Please sign in to comment.