Skip to content

Commit b815acb

Browse files
committed
Throttle massive scatter gather regression test
1 parent 02a8546 commit b815acb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/temporal/test_large_collection_regressions.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
ITEM_COUNT = 25
5353
MASSIVE_ITEM_COUNT = 50
5454
ITEM_SIZE_BYTES = 2 * 1024 * 1024
55+
MASSIVE_SCATTER_GATHER_MAX_PENDING_TASKS = 8
5556

5657

5758
async def _create_and_commit_workflow(
@@ -414,6 +415,15 @@ async def test_scatter_gather_massive_payload_50x2mb_e2e(
414415
without hanging and with refs-only collection chunk layout.
415416
"""
416417
_configure_storage_credentials(monkeypatch)
418+
monkeypatch.setenv(
419+
"TRACECAT__DSL_SCHEDULER_MAX_PENDING_TASKS",
420+
str(MASSIVE_SCATTER_GATHER_MAX_PENDING_TASKS),
421+
)
422+
monkeypatch.setattr(
423+
config,
424+
"TRACECAT__DSL_SCHEDULER_MAX_PENDING_TASKS",
425+
MASSIVE_SCATTER_GATHER_MAX_PENDING_TASKS,
426+
)
417427
sentinel = f"__massive-scatter-gather-sentinel-{uuid.uuid4().hex}__"
418428
items = _build_large_items(
419429
item_count=MASSIVE_ITEM_COUNT,

0 commit comments

Comments
 (0)