From 55d096ee8bac35a31b52d8f11f575e95ce3b4edb Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 23 Oct 2017 17:22:17 +1100 Subject: [PATCH] FEATURE: add event for scheduled_job_ran --- lib/scheduler/manager.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/scheduler/manager.rb b/lib/scheduler/manager.rb index fabb38a3989..e9d98b9abd3 100644 --- a/lib/scheduler/manager.rb +++ b/lib/scheduler/manager.rb @@ -109,6 +109,7 @@ module Scheduler success: !failed, error: error ) + DiscourseEvent.trigger(:scheduled_job_ran, stat) end end attempts(3) do