Skip to content

Commit 7d829d0

Browse files
authored
move batcher
Co-authored-by: thomas <18520168+yaythomas@users.noreply.github.com>
1 parent b4db34b commit 7d829d0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/e2e/map_with_concurrent_waits_int_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,14 @@ def test_map_with_concurrent_waits_api_call_count_scales_with_real_ops_not_empti
173173
operation_type=OperationType.STEP,
174174
action=OperationAction.START,
175175
)
176-
batcher = ThreadPoolExecutor(max_workers=1)
177-
batcher.submit(state.checkpoint_batches_forever)
178176

179177
ev = CompletionEvent()
180178
completion_events.append(ev)
181179
state._checkpoint_queue.put(QueuedOperation(op, ev)) # noqa: SLF001
182180

181+
batcher = ThreadPoolExecutor(max_workers=1)
182+
batcher.submit(state.checkpoint_batches_forever)
183+
183184
# Wait for all 410 to be processed
184185
for ev in completion_events:
185186
ev.wait()

0 commit comments

Comments
 (0)