Skip to content

Commit

Permalink
handle new redis connection pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Jun 21, 2024
1 parent 9223c59 commit 3cc3263
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/initializers/activejob_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

module ActiveJob::Status
def self.all
store.redis.keys("activejob:status:*").map { |x| ActiveJob::Status.get(x.split(":").last) }
store.redis.with do |conn|
conn.keys("activejob:status:*").map { |x| ActiveJob::Status.get(x.split(":").last) }
end
end
end

Expand Down

0 comments on commit 3cc3263

Please sign in to comment.