Add forgotten concurrency import to otj

This commit is contained in:
Max Wofford 2025-03-05 17:36:14 -05:00
parent 2e0d245f6d
commit 4dcbc37377

View file

@ -1,6 +1,8 @@
class OneTime::GenerateUniqueHeartbeatHashesJob < ApplicationJob
queue_as :default
include GoodJob::ActiveJobExtensions::Concurrency
# only allow one instance of this job to run at a time
good_job_control_concurrency_with(
key: -> { "generate_unique_heartbeat_hashes_job" },