Skip to content

Commit

Permalink
warn about allocations w/ job submission time
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidzr committed Mar 25, 2024
1 parent ea836d5 commit 81bb5bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions master/internal/rm/tasklist/task_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"strings"

"github.com/emirpasic/gods/sets/treeset"
"github.com/sirupsen/logrus"

"github.com/determined-ai/determined/master/internal/sproto"
"github.com/determined-ai/determined/master/pkg/model"
Expand Down Expand Up @@ -93,6 +94,9 @@ func (l *TaskList) AddAllocation(id model.AllocationID, assigned *sproto.Resourc
// AddAllocationRaw adds an allocation for the allocation actor without modifying the
// sproto.AllocateRequest's sproto.SchedulingState.
func (l *TaskList) AddAllocationRaw(id model.AllocationID, assigned *sproto.ResourcesAllocated) {
if assigned != nil && assigned.JobSubmissionTime.IsZero() {
logrus.Warnf("added allocation %s without a job submission time", id)
}
l.allocations[id] = assigned
}

Expand Down

0 comments on commit 81bb5bd

Please sign in to comment.