Skip to content

Commit

Permalink
chore: fix defect with router destinations map access event order (#2589
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Sidddddarth committed Oct 20, 2022
1 parent 0e1da7e commit a9d515e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions router/router.go
Expand Up @@ -459,6 +459,21 @@ func (worker *workerT) workerProcess() {
Parameters: routerutils.EmptyPayload,
WorkspaceId: job.WorkspaceId,
}
worker.rt.failedEventsChan <- status
if worker.rt.guaranteeUserEventOrder {
worker.rt.logger.Debugf(
"EventOrder: [%d] job %d for user %s failed",
worker.workerID, status.JobID, job.UserID,
)
err := worker.barrier.StateChanged(
job.UserID,
job.JobID,
status.JobState,
)
if err != nil {
panic(err)
}
}
worker.rt.responseQ <- jobResponseT{status: &status, worker: worker, userID: userID, JobT: job}
continue
}
Expand Down

0 comments on commit a9d515e

Please sign in to comment.