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