Skip to content

Commit

Permalink
Merge pull request #2298 from manyfold3d/redis-connection-pool
Browse files Browse the repository at this point in the history
Use new Rails 7.1 Redis connection pool
  • Loading branch information
Floppy authored Jun 21, 2024
2 parents a2d3bbc + 3cc3263 commit 1407450
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 1407450

Please sign in to comment.