From a00f578896dd8e2d132e5f57e5d71b38b1121e60 Mon Sep 17 00:00:00 2001 From: Cooper Lees Date: Tue, 12 Mar 2024 00:54:29 -0700 Subject: [PATCH] Shard out disabling `requires_enable` API (50%) Differential Revision: D54608082 fbshipit-source-id: eff0e6439c05159af2f263ff8107838df6f3f53e --- cookbooks/fb_timers/resources/setup.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/fb_timers/resources/setup.rb b/cookbooks/fb_timers/resources/setup.rb index 2720325e..d29d2cbb 100644 --- a/cookbooks/fb_timers/resources/setup.rb +++ b/cookbooks/fb_timers/resources/setup.rb @@ -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