Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
blackroot committed Mar 18, 2022
1 parent a51fadf commit 36e48d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xdelay_queue/delay_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ func (dq *DelayQueue) UpdateJob(jobCore *JobCore) error {
}
job, err := dq.getJob(jobCore.Id)
if err != nil {
return errors.WithStack(err)
if !errors.Is(err, redis.Nil) {
return errors.WithStack(err)
}
}
if job.DoneTimes > 0 {
return errors.New("job is doing")
Expand Down

0 comments on commit 36e48d4

Please sign in to comment.