Skip to content

A platform for community discussion. Free, open, simple.

DEV: Trigger an event when a Pitchfork worker times out (#44110)

Alan Guo Xiang Tan299097c5b3f4
diff --git a/config/pitchfork.conf.rb b/config/pitchfork.conf.rb
index 8385216f703..ea856268d89 100644
--- a/config/pitchfork.conf.rb
+++ b/config/pitchfork.conf.rb
@@ -181,6 +181,7 @@ after_worker_timeout do |server, worker, timeout_info|
MSG
Rails.logger.error(message)
+ DiscourseEvent.trigger(:web_worker_timeout, continue_on_error: true)
end
if RUBY_PLATFORM.include?("darwin") && ENV["RAILS_ENV"] != "production"