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