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

Add public API event for kernel post-initialization #16214

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

Conversation

pwang347
Copy link
Member

@pwang347 pwang347 commented Nov 8, 2024

No description provided.

if (!isRemoteConnection(kernel.kernelConnectionMetadata) && execution.executionCount === 0) {
// For local kernels, execution count must be greater than 0,
// As we pre-warms kernels (i.e. we start kernels even though the user may not have executed any code).
// The only way to determine whether users executed code is to look at the execution count
Copy link
Contributor

Choose a reason for hiding this comment

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

We need some check to ensure we do not trigger these events for kernels that are automatically started
Events should be triggered only for kernels that were explicitly started by user

Copy link
Contributor

Choose a reason for hiding this comment

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

Please ensure that requirements is still met

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me know if the latest iteration based on feedback below addresses this. Thanks!

@pwang347 pwang347 changed the title [DRAFT] Add public API event for kernel post-initialization Add public API event for kernel post-initialization Nov 15, 2024
@pwang347 pwang347 marked this pull request as ready for review November 15, 2024 22:13
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