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

[#48433] Disable cron job by feature flag

Pavel Balashou470b23603968
diff --git a/modules/storages/lib/open_project/storages/engine.rb b/modules/storages/lib/open_project/storages/engine.rb
index 080dbea7611..92854482fab 100644
--- a/modules/storages/lib/open_project/storages/engine.rb
+++ b/modules/storages/lib/open_project/storages/engine.rb
@@ -229,8 +229,11 @@ module OpenProject::Storages
add_cron_jobs do
[
CleanupUncontaineredFileLinksJob,
- ManageNextcloudIntegrationJob
- ]
+ ].tap do |cron_jobs|
+ if OpenProject::FeatureDecisions.managed_project_folders_active?
+ cron_jobs << ManageNextcloudIntegrationJob
+ end
+ end
end
end
end