2018-10-09 18:35:14 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Scheduler::PgheroScheduler
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2020-03-31 20:59:03 +01:00
|
|
|
sidekiq_options lock: :until_executed, retry: 0
|
2018-10-09 18:35:14 +01:00
|
|
|
|
|
|
|
def perform
|
|
|
|
PgHero.capture_space_stats
|
|
|
|
end
|
|
|
|
end
|