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

trigger Kernel.status_started after websockets open #4079

Merged
merged 1 commit into from Sep 13, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Aug 21, 2013

This leads to a more logical state for event watchers to expect.

This leads to a more logical state for event watchers to expect.

var channels = [this.shell_channel, this.iopub_channel, this.stdin_channel];
for (var i=0; i < channels.length; i++) {
// if any channel is not ready, don't trigger event.
Copy link
Member

Choose a reason for hiding this comment

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

Just curious about the logic: if a channel isn't ready and the early exit is forced, is there a chance for this event to fire later when those channels are ready? Should there be a similar event triggered when the channels become ready to ensure that once the last one is ready, the event is always sent?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think I understand the question. The event will only be triggered if all three connections are ready. If the early-close event fires before they are all ready, the started event will never fire because the websockets will be closed.

@minrk
Copy link
Member Author

minrk commented Sep 3, 2013

Merging soon unless I hear otherwise.

@Carreau
Copy link
Member

Carreau commented Sep 12, 2013

Merging soon unless I hear otherwise.

Soon was 9 days ago. Shall I merge ?

Carreau added a commit that referenced this pull request Sep 13, 2013
trigger `Kernel.status_started` after websockets open
@Carreau Carreau merged commit 691db14 into ipython:master Sep 13, 2013
@minrk minrk deleted the status_started branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
trigger `Kernel.status_started` after websockets open
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

3 participants