diff --git a/app/jobs/add_registration_job.rb b/app/jobs/add_registration_job.rb index 55954c50ae..001025a399 100644 --- a/app/jobs/add_registration_job.rb +++ b/app/jobs/add_registration_job.rb @@ -17,6 +17,10 @@ def self.prepare_task(user_id, competition_id) end def perform(lane_name, competition_id, user_id, lane_params) + # Hotfix for mass stuck duplicate registrations in the queue + registration = Registration.find_by(competition_id: competition_id, user_id: user_id) + return if registration.present? + lane_model_name = lane_name.upcase_first lane = Registrations::Lanes.class_eval(lane_model_name)