mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
Add forgotten concurrency import to otj
This commit is contained in:
parent
2e0d245f6d
commit
4dcbc37377
1 changed files with 2 additions and 0 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue