Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/que/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def run(*args)
end

def work(queue = '')
::ActiveRecord::Base.clear_active_connections!

# Since we're taking session-level advisory locks, we have to hold the
# same connection throughout the process of getting a job, working it,
# deleting it, and removing the lock.
Expand Down