Skip to content

Commit

Permalink
feat(queue): allow to exclude dead queue from size
Browse files Browse the repository at this point in the history
  • Loading branch information
lsndr authored and robacarp committed Jul 19, 2024
1 parent b4b6e16 commit 383822f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mosquito/queue.cr
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ module Mosquito
backend.terminate job_run
end

def size : Int64
backend.size
def size(include_dead = true) : Int64
backend.size(include_dead)
end

def ==(other : self) : Bool
Expand Down

0 comments on commit 383822f

Please sign in to comment.