Skip to content

Commit

Permalink
Shard out disabling requires_enable API (75%)
Browse files Browse the repository at this point in the history
Differential Revision: D54608086

fbshipit-source-id: 64c60fdfdfb3f922b7f2923cd2643aeb71921883
  • Loading branch information
cooperlees authored and facebook-github-bot committed Mar 12, 2024
1 parent e50ee35 commit 8c586c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbooks/fb_timers/resources/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
# and to deprecate the API parameter once done
# Check it's not already disabled elsewhere
if conf['requires_enable'] == true
# Work down shard - set false for any box in shard 49-99 (25%)
conf['requires_enable'] = node.in_shard?(49)
# Work down shard - set false for any box in shard 24-99 (75%)
conf['requires_enable'] = node.in_shard?(24)
end

node.default['fb_timers']['jobs'][name] = conf
Expand Down

0 comments on commit 8c586c6

Please sign in to comment.