Skip to content

Commit

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

fbshipit-source-id: 9fd6ae63183a5ff1b0c5673c2f5a5a35bc9b95e5
  • Loading branch information
cooperlees authored and facebook-github-bot committed Mar 11, 2024
1 parent 96dc889 commit c788f75
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 89-99 (10%)
conf['requires_enable'] = node.in_shard?(89)
# Work down shard - set false for any box in shard 74-99 (25%)
conf['requires_enable'] = node.in_shard?(74)
end

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

0 comments on commit c788f75

Please sign in to comment.