Skip to content

Commit

Permalink
fix method call for race condition recovery in OnDemandDerivativeCreator
Browse files Browse the repository at this point in the history
  • Loading branch information
jrochkind committed Dec 16, 2024
1 parent 6414cb6 commit b04ac66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/on_demand_derivative_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b04ac66

Please sign in to comment.