Skip to content

Commit

Permalink
Merge pull request #10353 from eduardoj/introduce_group_measure
Browse files Browse the repository at this point in the history
Introduce group measurements
  • Loading branch information
hennevogel committed Oct 29, 2020
2 parents 5b49104 + bfb97ed commit 2305e57
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/api/app/jobs/measurements_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class MeasurementsJob < ApplicationJob
queue_as :quick

def perform
RabbitmqBus.send_to_bus('metrics', "group count=#{Group.count}")
end
end
4 changes: 4 additions & 0 deletions src/api/config/clock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ module Clockwork
SendEventEmailsJob.perform_later
end

every(5.minutes, 'measurements') do
MeasurementsJob.perform_later
end

every(49.minutes, 'rescale history') do
StatusHistoryRescalerJob.perform_later
end
Expand Down

0 comments on commit 2305e57

Please sign in to comment.