Skip to content

Commit

Permalink
fix(SiteUpdate): Reallocate workers for 100$ site update
Browse files Browse the repository at this point in the history
Was a >= before refactor. Tests caught this. We were dumb to not notice
  • Loading branch information
balamurali27 committed Nov 27, 2024
1 parent e01acea commit 00ee3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion press/press/doctype/site_update/site_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def is_workload_diff_high(self) -> bool:

THRESHOLD = 8 # USD 100 site equivalent. (Since workload is based off of CPU)

workload_diff_high = cpu > THRESHOLD
workload_diff_high = cpu >= THRESHOLD

if not workload_diff_high:
source_bench = frappe.get_doc("Bench", self.source_bench)
Expand Down

0 comments on commit 00ee3fa

Please sign in to comment.