Skip to content

Commit

Permalink
Something is fishy with AR 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
albus522 committed Aug 14, 2024
1 parent e5e7366 commit bcae2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/backend/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def self.reserve_with_scope_using_optimized_postgres(ready_scope, worker, now)
# when attempting to get the next available job
# https://www.postgresql.org/docs/9.5/sql-select.html#SQL-FOR-UPDATE-SHARE
if connection.send(:postgresql_version) >= 9_05_00 # rubocop:disable Style/NumericLiterals
subquery += " SKIP LOCKED"
subquery = "#{subquery} SKIP LOCKED"
end

quoted_name = connection.quote_table_name(table_name)
Expand Down

0 comments on commit bcae2d6

Please sign in to comment.