Skip to content

feat(sdk): Implement efficient replay mechanism#109

Merged
1 commit merged intomainfrom
quinsclr/fix-concurrency-on-map-and-parallel
Oct 29, 2025
Merged

feat(sdk): Implement efficient replay mechanism#109
1 commit merged intomainfrom
quinsclr/fix-concurrency-on-map-and-parallel

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Oct 29, 2025

Parallel and Map now replays without using threading.

Changes:

  • context.map and context.parallel now call child_handler directly and
    create their own operation identifier
  • map_handler and parallel_handler now checks the state of the
    operation and when we have already succeeded, we use executor.replay
    We test this by mocking the state, and ensuring we first run through
    execute and then through replay and get back the correct results.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

fixes: #92

@ghost ghost closed this Oct 29, 2025
@ghost ghost reopened this Oct 29, 2025
@ghost ghost requested a review from yaythomas October 29, 2025 21:04
@ghost ghost force-pushed the quinsclr/fix-concurrency-on-map-and-parallel branch 2 times, most recently from e3235e7 to 00ab201 Compare October 29, 2025 22:14
Parallel and Map now replays without using threading.

Changes:
 - context.map and context.parallel now call child_handler directly and
   create their own operation identifier
 - `map_handler` and `parallel_handler` now checks the state of the
   operation and when we've already succeeded, we use `executor.replay`

We test this by mocking the state, and ensuring we first run through
execute and then through replay and get back the correct results.
@ghost ghost force-pushed the quinsclr/fix-concurrency-on-map-and-parallel branch from 00ab201 to f6f3d46 Compare October 29, 2025 22:17
@ghost ghost closed this Oct 29, 2025
@ghost ghost reopened this Oct 29, 2025
@ghost ghost closed this Oct 29, 2025
@ghost ghost reopened this Oct 29, 2025
@ghost ghost closed this Oct 29, 2025
@ghost ghost reopened this Oct 29, 2025
@ghost ghost merged commit 5a380cf into main Oct 29, 2025
19 of 25 checks passed
@ghost ghost deleted the quinsclr/fix-concurrency-on-map-and-parallel branch October 29, 2025 22:31
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement optimized replay for map / parallel

2 participants