Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove delayed job sending

Oliver Güntherf108693f8354
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb
index 5df61ff1f2c..d6f300072f1 100644
--- a/config/initializers/sentry.rb
+++ b/config/initializers/sentry.rb
@@ -1,21 +1,8 @@
if OpenProject::Logging::SentryLogger.enabled?
- ##
- # Define the SentryJob here, as sentry gets dynamically loaded
- class SentryJob < Sentry::SendEventJob
- queue_with_priority :low
- end
-
Sentry.init do |config|
config.dsn = OpenProject::Logging::SentryLogger.sentry_dsn
config.breadcrumbs_logger = OpenProject::Configuration.sentry_breadcrumb_loggers.map(&:to_sym)
- # Submit events as delayed job only when requested to do that
- if ENV['OPENPROJECT_SENTRY_DELAYED_JOB'] == 'true'
- config.async = lambda do |event, hint|
- ::SentryJob.perform_later(event, hint)
- end
- end
-
# Output debug info for sentry
config.before_send = lambda do |event, hint|
Rails.logger.debug do