Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added thread interceptor #120

Merged
merged 17 commits into from
Jun 24, 2020
Merged

Added thread interceptor #120

merged 17 commits into from
Jun 24, 2020

Conversation

mfateev
Copy link
Member

@mfateev mfateev commented Jun 22, 2020

Added WorkflowInterceptor support for workflow threads. It is to allow support for context propagation without modifying the SDK code directly.

@mfateev mfateev requested a review from samarabbas June 22, 2020 03:11
WorkflowThread newThread(Runnable runnable, boolean detached, String name);

/** Only to be called by SyncDecisionContext. */
WorkflowThread newThreadNoInterceptor(Runnable runnable, boolean detached, String name);

Choose a reason for hiding this comment

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

I'm trying to understand why this additional API is needed? Why can't there be a no-op interceptor which does nothing. It would be good to provide some context as part of API documentation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Refactored to remove the need for newThreadNoInterceptor.

@mfateev mfateev requested a review from samarabbas June 22, 2020 19:52
@mfateev mfateev merged commit 6105d49 into temporalio:master Jun 24, 2020
@mfateev mfateev deleted the interceptor branch June 24, 2020 05:47
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.

None yet

2 participants