Skip to content

Commit fb74ecc

Browse files
authored
Merge pull request #460 from PolicyEngine/feat/budget-window-max-parallel-20
Raise budget-window batch max_parallel to 20
2 parents 45ba6ae + ab25f0f commit fb74ecc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

projects/policyengine-api-simulation/src/modal/gateway/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class BudgetWindowBatchRequest(GatewayRequestBase):
162162

163163
MAX_YEARS: ClassVar[int] = 75
164164
MAX_END_YEAR: ClassVar[int] = 2099
165-
MAX_PARALLEL: ClassVar[int] = 3
165+
MAX_PARALLEL: ClassVar[int] = 20
166166

167167
region: str
168168
start_year: str

projects/policyengine-api-simulation/tests/gateway/test_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def test__given_max_parallel_above_active_limit__then_budget_window_submit_retur
672672
"reform": {},
673673
"start_year": "2026",
674674
"window_size": 3,
675-
"max_parallel": 4,
675+
"max_parallel": 21,
676676
},
677677
)
678678

projects/policyengine-api-simulation/tests/gateway/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def test_budget_window_batch_request_rejects_max_parallel_above_active_limit(sel
459459
region="us",
460460
start_year="2026",
461461
window_size=3,
462-
max_parallel=4,
462+
max_parallel=21,
463463
)
464464

465465
def test_budget_window_batch_request_accepts_extra_simulation_fields(self):

0 commit comments

Comments
 (0)