Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
  • Loading branch information
d80tb7 committed Aug 24, 2024
1 parent 7f18720 commit a1946a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/scheduler/simulator/simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package simulator
import (
"container/heap"
"fmt"
"github.com/armadaproject/armada/internal/scheduler/schedulerresult"

Check failure on line 6 in internal/scheduler/simulator/simulator.go

View workflow job for this annotation

GitHub Actions / lint / Lint Go

File is not `gofumpt`-ed (gofumpt)
"math/rand"
"sync/atomic"
"time"

Check failure on line 9 in internal/scheduler/simulator/simulator.go

View workflow job for this annotation

GitHub Actions / lint / Lint Go

File is not `gofumpt`-ed (gofumpt)
Expand Down Expand Up @@ -538,7 +539,7 @@ func (s *Simulator) handleScheduleEvent(ctx *armadacontext.Context) error {

// Update jobDb to reflect the decisions by the scheduler.
// Sort jobs to ensure deterministic event ordering.
preemptedJobs := scheduler.PreemptedJobsFromSchedulerResult(result)
preemptedJobs := schedulerresult.PreemptedJobsFromSchedulerResult(result)
scheduledJobs := slices.Clone(result.ScheduledJobs)
lessJob := func(a, b *jobdb.Job) int {
if a.Queue() < b.Queue() {
Expand Down

0 comments on commit a1946a3

Please sign in to comment.