Skip to content

Commit 2e8aa59

Browse files
authored
Merge pull request breamware#44 from kvokka/fix-travis
Fix Travis
2 parents 478f59c + b8b6b1b commit 2e8aa59

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)