From bcae2d6bd17f4bec956940daff91ccb3531b6215 Mon Sep 17 00:00:00 2001 From: David Genord II Date: Wed, 14 Aug 2024 16:50:07 -0400 Subject: [PATCH] Something is fishy with AR 3.0 --- lib/delayed/backend/active_record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/delayed/backend/active_record.rb b/lib/delayed/backend/active_record.rb index 45f1a5fc..07f683c2 100644 --- a/lib/delayed/backend/active_record.rb +++ b/lib/delayed/backend/active_record.rb @@ -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)