52
func (a *taskKeyGenerator) setTaskKeys(
53
taskMaps ...map[tasks.Category][]tasks.Task,
55
>
now := a.timeSource.Now()
56
>
// TODO: Truncation here is just to make sure task scheduled time has the same precision as the old logic.
57
>
// Remove this truncation once we validate the rest of the code can worker correctly with higher precision.
58
>
a.setTaskMinScheduledTime(now.Truncate(common.ScheduledTaskMinPrecision))
59
>
60
>
for _, taskMap := range taskMaps {
61
>
for category, tasksByCategory := range taskMap {
62
isScheduledTask := category.Type() == tasks.CategoryTypeScheduled
63
for _, task := range tasksByCategory {