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

clarify transactional nature of active_job in OP

ulferts1f25c5eb5c25
diff --git a/config/initializers/new_framework_defaults_7_2.rb b/config/initializers/new_framework_defaults_7_2.rb
index 14e90130db0..e9920c85f8e 100644
--- a/config/initializers/new_framework_defaults_7_2.rb
+++ b/config/initializers/new_framework_defaults_7_2.rb
@@ -34,7 +34,9 @@
# backends that use the same database as Active Record as a queue, hence they
# don't need this feature.
#++
-# Rails.application.config.active_job.enqueue_after_transaction_commit = :default
+
+# OP does use the same database as the queue. So writing to GoodJob is already transactional.
+Rails.application.config.active_job.enqueue_after_transaction_commit = :never
###
# Adds image/webp to the list of content types Active Storage considers as an image