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

Python: resolving #10642 - public events fail to propagate #10643

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

drdrew42
Copy link
Contributor

@drdrew42 drdrew42 commented Feb 22, 2025

Motivation and Context

Resolves #10642 -- failure of KernelProcessEventVisibility.Public events to propagate.

Description

First, KernelProcessEvent was configured to use enum values -- though throughout the code, KernelProcessEvent.visibility is compared as an enum.

Second, when handling events emitted by a KernelProcessStep, any Public visibility events are/were passed through LocalStep.scoped_event (which modifies the event's namespace) before queueing up any matching edges on the source step. This change to the event namespace effectively prevents the event from propagating (since I don't know how we'd 'listen' for events on the local process handle from within the function that builds that very process...)

Allowing visibility on KernelProcessEvent to be an enum, combined with an exchange in the order of processing event messages (matching event to edge before re-emitting any events marked as 'Public') causes public events to propagate as expected.

Contribution Checklist

@drdrew42 drdrew42 requested a review from a team as a code owner February 22, 2025 20:28
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.

Python: Bug: Multiple KernelProcessEventVisibility related issues
1 participant