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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove delayed job sending
Oliver Güntherf108693f8354
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rbindex 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_dsnconfig.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 sentryconfig.before_send = lambda do |event, hint|Rails.logger.debug do