Skip to content

Commit

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

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

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

0 comments on commit a00f578

Please sign in to comment.