From b04ac663ec78c49f1aa114856f62f39252a497a4 Mon Sep 17 00:00:00 2001 From: Jonathan Rochkind Date: Mon, 16 Dec 2024 15:42:48 -0500 Subject: [PATCH] fix method call for race condition recovery in OnDemandDerivativeCreator --- app/services/on_demand_derivative_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/on_demand_derivative_creator.rb b/app/services/on_demand_derivative_creator.rb index 966c1a839..1d010010e 100644 --- a/app/services/on_demand_derivative_creator.rb +++ b/app/services/on_demand_derivative_creator.rb @@ -68,7 +68,7 @@ def find_or_create_record(retry_count: 0) return record rescue ActiveRecord::RecordNotUnique # race condition, someone else created it, no biggy, just try again - return find_or_create_record(type, retry_count: retry_count + 1) + return find_or_create_record(retry_count: retry_count + 1) end # @return OnDemandDerivative record that will have status and data for work and derivative type