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

skip job if feature flag has been disabled

Markus Kahl595784553efb
diff --git a/modules/github_integration/app/workers/cron/check_deploy_status_job.rb b/modules/github_integration/app/workers/cron/check_deploy_status_job.rb
index 4a55c2e0093..d40f52c5f5f 100644
--- a/modules/github_integration/app/workers/cron/check_deploy_status_job.rb
+++ b/modules/github_integration/app/workers/cron/check_deploy_status_job.rb
@@ -33,6 +33,8 @@ module Cron
priority_number :low
def perform
+ return unless OpenProject::FeatureDecisions.deploy_targets_active?
+
deploy_targets.find_each do |deploy_target|
sha = openproject_core_sha deploy_target.host, deploy_target.api_key