Skip to content

Commit b8b6b1b

Browse files
committed
Fix Travis
1 parent 478f59c commit b8b6b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sidekiq/batch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def parent
130130
end
131131

132132
def valid?(batch = self)
133-
valid = !Sidekiq.redis { |r| r.exists("invalidated-bid-#{batch.bid}") }
133+
valid = !Sidekiq.redis { |r| r.get("invalidated-bid-#{batch.bid}") == "1" }
134134
batch.parent ? valid && valid?(batch.parent) : valid
135135
end
136136

0 commit comments

Comments
 (0)