Skip to content

Commit

Permalink
Remove the job from the backup queue if it's acked
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Oct 7, 2023
1 parent 955fb92 commit 9d51077
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/redis_v2/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func (e *Engine) consumeMulti(namespace string, queues []string, ttrSecond, time
}

func (e *Engine) Delete(namespace, queue, jobID string) error {
_ = e.timer.removeFromBackup(namespace, queue, jobID)
err := e.pool.Delete(namespace, queue, jobID)
if err == nil {
elapsedMS, _ := uuid.ElapsedMilliSecondFromUniqueID(jobID)
Expand Down

0 comments on commit 9d51077

Please sign in to comment.