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)