summaryrefslogtreecommitdiff
path: root/lib/feature/shared.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/feature/shared.rb')
-rw-r--r--lib/feature/shared.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/feature/shared.rb b/lib/feature/shared.rb
index 6af24451322..d801070ff1a 100644
--- a/lib/feature/shared.rb
+++ b/lib/feature/shared.rb
@@ -54,6 +54,17 @@ module Feature
example: <<-EOS
experiment(:my_experiment, project: project, actor: current_user) { ...variant code... }
EOS
+ },
+ worker: {
+ description: "Feature flags for controlling Sidekiq workers behavior (e.g. deferring jobs)",
+ optional: true,
+ rollout_issue: false,
+ ee_only: false,
+ default_enabled: false,
+ example: '<<-EOS
+ Feature.enabled?(:"defer_sidekiq_jobs:AuthorizedProjectsWorker", type: :worker,
+ default_enabled_if_undefined: false)
+ EOS'
}
}.freeze