From 4f9a980cfbb2de13e8b8d5e72f115e1d0fa7678b Mon Sep 17 00:00:00 2001 From: Pagwin Date: Tue, 9 Jun 2026 16:59:58 -0400 Subject: [PATCH] safety bars --- web_solve.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web_solve.py b/web_solve.py index c6f95bc..40eff35 100644 --- a/web_solve.py +++ b/web_solve.py @@ -156,8 +156,9 @@ def solve_handler(): arrivals=arrivals, max_res=solve.MAX_RES, max_vat=solve.MAX_VAT, - time_limit=time_limit, - num_workers=8, + # min to avoid bricking stuff + time_limit=min(time_limit, 60.0), + num_workers=1, verbose=verbose, fixed_choices=fixed_choices, resource_constraints=resource_constraints, @@ -173,4 +174,4 @@ def solve_handler(): if __name__ == "__main__": - app.run(debug=False, host='0.0.0.0', port=5000) + app.run(debug=False, host="0.0.0.0", port=5000)