skip assignment on subsequent runs
This commit is contained in:
parent
a80acaaf6b
commit
c615023de4
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ func (s *Server) reconcile(ctx context.Context, runID int64, rep *User, dept str
|
|||
continue
|
||||
}
|
||||
|
||||
if existing == agent {
|
||||
continue // already assigned to the right rep
|
||||
}
|
||||
|
||||
if existing != 0 {
|
||||
// Fill-only: never displace an existing agent.
|
||||
skipped++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue