Skip to content

Commit

Permalink
allocrunnersim: stop batch tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Apr 10, 2024
1 parent 5277d30 commit eb0c912
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions allocrunnersim/allocrunnersim.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ func (ar *simulatedAllocRunner) Run() {
ar.allocStateLock.Unlock()

ar.updateAllocAndSendUpdate(taskStates)

go func() {
time.Sleep(10 * time.Second)
ar.stopAll()
}()
}

// updateAllocAndSendUpdate is a small helper that builds a new allocation
Expand Down

0 comments on commit eb0c912

Please sign in to comment.