diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-09 19:35:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 19:35:14 +0200 |
commit | 7f9dd92a27e937e3cbc42c1e3c8b844c3583c92b (patch) | |
tree | 56d6d6372e912280b72093fe7424cb5e99564df1 /app | |
parent | d4b7d7596806b73b29f08143734257e04fee82c0 (diff) |
Track historical space stats in PgHero to determine PostgreSQL growth (#8906)
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/scheduler/pghero_scheduler.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/workers/scheduler/pghero_scheduler.rb b/app/workers/scheduler/pghero_scheduler.rb new file mode 100644 index 000000000..4453bf2cd --- /dev/null +++ b/app/workers/scheduler/pghero_scheduler.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class Scheduler::PgheroScheduler + include Sidekiq::Worker + + sidekiq_options unique: :until_executed, retry: 0 + + def perform + PgHero.capture_space_stats + end +end |