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

allow failed jobs retry initializer to fail during migration

Markus Kahl8e9918636fa3
diff --git a/config/initializers/retry_failed_jobs_with_name_error.rb b/config/initializers/retry_failed_jobs_with_name_error.rb
index af95bcb7f97..cb78b81680a 100644
--- a/config/initializers/retry_failed_jobs_with_name_error.rb
+++ b/config/initializers/retry_failed_jobs_with_name_error.rb
@@ -47,6 +47,8 @@ Rails.application.configure do
rescue StandardError => e
Rails.logger.error("Failed to enqueue job for retry #{job.display_name} (job id: #{job.id}): #{e.message}")
end
+ rescue ActiveRecord::StatementInvalid
+ # will happen when we currently are migrating
rescue LoadError
# Ignore LoadError that happens when nulldb://db database adapter is used
end