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

ExecutorScheduler should use onScheduleHook #3356

Merged
merged 2 commits into from
Feb 16, 2023

Conversation

chemicL
Copy link
Member

@chemicL chemicL commented Feb 16, 2023

ExecutorScheduler did not wrap tasks with onScheduleHook configured in Schedulers. This can lead to various unexpected situations, but an apparent one is that automatic context propagation to ThreadLocals does not work when an ExecutorScheduler is used by any operator.

Fixes #3355.

`ExecutorScheduler` did not wrap tasks with `onScheduleHook` configured
in `Schedulers`. This can lead to various unexpected situations,
but an apparent one is that automatic context propagation to
`ThreadLocal`s does not work when an `ExecutorScheduler` is used by any
operator.

Fixes #3355.
@chemicL chemicL added type/bug A general bug area/context This issue is related to the Context labels Feb 16, 2023
@chemicL chemicL added this to the 3.5.4 milestone Feb 16, 2023
@chemicL chemicL requested a review from a team as a code owner February 16, 2023 10:19
@chemicL chemicL self-assigned this Feb 16, 2023
@chemicL chemicL merged commit 75395ea into 3.4.x Feb 16, 2023
@reactorbot
Copy link

@chemicL this PR seems to have been merged on a maintenance branch, please ensure the change is merge-forwarded to intermediate maintenance branches and up to main 🙇

@chemicL chemicL deleted the hooks-for-executor-scheduler branch February 16, 2023 11:31
chemicL added a commit that referenced this pull request Feb 16, 2023
chemicL added a commit that referenced this pull request Mar 7, 2023
`ExecutorScheduler` did not wrap tasks with `onScheduleHook` configured
in `Schedulers`. This can lead to various unexpected situations,
but an apparent one is that automatic context propagation to
`ThreadLocal`s does not work when an `ExecutorScheduler` is used by any
operator.

Fixes #3355.
@violetagg violetagg modified the milestones: 3.5.4, 3.4.28 Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/context This issue is related to the Context type/bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants