Skip to content

feat: [Parallel] Update context setting logic#231

Merged
zhongkechen merged 1 commit intomainfrom
parallel/wait_examples
Mar 19, 2026
Merged

feat: [Parallel] Update context setting logic#231
zhongkechen merged 1 commit intomainfrom
parallel/wait_examples

Conversation

@wangyb-A
Copy link
Contributor

@wangyb-A wangyb-A commented Mar 18, 2026

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Issue Link, if available

Description

  • Add threadContext setting logic when create child context
  • Add parallel wait example
  • Add unit tests for durable context impl
  • Add replayChildren=true for Parallel checkpoints

Demo/Screenshots

iShot_2026-03-18_16 52 08

Checklist

  • I have filled out every section of the PR template
  • I have thoroughly tested this change

Testing

Unit Tests

Have unit tests been written for these changes? Yes

Integration Tests

Have integration tests been written for these changes? N/A

Examples

Has a new example been added for the change? (if applicable) Yes


// write the thread id and type to thread local
executionManager.setCurrentThreadContext(new ThreadContext(contextId, threadType));
if (setCurrentThreadContext) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a kind of temporary hack for now

@zhongkechen zhongkechen merged commit fba65a6 into main Mar 19, 2026
12 checks passed
@zhongkechen zhongkechen deleted the parallel/wait_examples branch March 19, 2026 00:25
nvasiu pushed a commit that referenced this pull request Mar 19, 2026
Co-authored-by: Alex Wang <wangyb@amazon.com>
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.

2 participants