From 128066ee68e510b5f51d92928a04662be1af596c Mon Sep 17 00:00:00 2001 From: Matt Almeida Date: Sun, 29 Dec 2024 11:23:13 -0500 Subject: [PATCH] Update archivable.rb --- app/models/hackathon/website/archivable.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/hackathon/website/archivable.rb b/app/models/hackathon/website/archivable.rb index 2f217898..8e880f19 100644 --- a/app/models/hackathon/website/archivable.rb +++ b/app/models/hackathon/website/archivable.rb @@ -46,6 +46,9 @@ def archive_with(job_id) end class FollowUpJob < ApplicationJob + limits_concurrency to: 15, duration: 1.minute, group: "Wayback Machine", key: "API" + queue_as :low + def perform(hackathon, id) hackathon.follow_up_on_archive(id) end