Skip to content
Snippets Groups Projects
Commit 722db371 authored by Per 29 mei 2024 gedeeld account, daarvoor marten's avatar Per 29 mei 2024 gedeeld account, daarvoor marten
Browse files

Add gauge for the scheduler itself regardless of which tasks run this time around

parent 0e52215b
Branches
Tags
1 merge request!43Add gauge for the scheduler itself regardless of which tasks run this time around
Pipeline #73810 passed
......@@ -11,6 +11,8 @@ class Roqua::Scheduling::Scheduler
raise ex if Rails.env.test?
end
end
Appsignal.increment_counter("scheduler.completed", 1)
end
end
......
......@@ -86,6 +86,7 @@ describe Roqua::Scheduling::Scheduler do
end
it 'counts task calls' do
expect(Appsignal).to receive(:increment_counter).with('scheduler.completed', 1)
expect(Appsignal).to receive(:increment_counter).with('scheduler.run_task.completed', 1, task_name: 'hourly')
subject.ping
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment