mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 21:05:15 +00:00
* Imports are back!! * Settings UI v3 * Use Inertia forms for heartbeat imports * Update app/javascript/pages/Users/Settings/Data.svelte * Update Bundle * Fix broken Form/Button markup in Data.svelte settings page * Update JS deps * Greptile fixes * Remove dead code * Fixy wixy * woohoo * fixes * Fix * Fixes * Fix TC * Fix TC * welp * test * Even more Greptile fixes
15 lines
367 B
Ruby
15 lines
367 B
Ruby
class HeartbeatImportJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
include GoodJob::ActiveJobExtensions::Concurrency
|
|
|
|
good_job_control_concurrency_with(
|
|
total_limit: 1,
|
|
key: -> { "heartbeat_import_job_#{arguments.first}" },
|
|
drop: true
|
|
)
|
|
|
|
def perform(import_run_id, file_path)
|
|
HeartbeatImportRunner.run_import(import_run_id:, file_path:)
|
|
end
|
|
end
|