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