From a9775e7ce844111be1d2421ba5a80e26ccd441e7 Mon Sep 17 00:00:00 2001 From: gabrielburnworth Date: Fri, 10 May 2024 10:27:55 -0700 Subject: [PATCH] decrease update batch size --- app/mutations/devices/unattended_upgrade.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mutations/devices/unattended_upgrade.rb b/app/mutations/devices/unattended_upgrade.rb index 16441714f2..b378cc81b6 100644 --- a/app/mutations/devices/unattended_upgrade.rb +++ b/app/mutations/devices/unattended_upgrade.rb @@ -23,7 +23,7 @@ def eligible_devices(chan) .where("fbos_configs.os_auto_update" => true) .where(ota_hour_utc: [nil, Time.now.utc.hour]) .order("RANDOM()") - .limit(200) + .limit(50) end def latest_version(chan)