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

Capture the parent message locally for idle messages #618

Merged
merged 3 commits into from
Jan 23, 2018

Conversation

nnicandro
Copy link
Contributor

On Julia 0.6, I am receiving idle messages with the wrong parent message ID. This only happens when there are multiple execute requests queued up. As an example, if you run the cell

sleep(3)

Then

sleep(2)

Where sleep(2) is sent to the kernel before sleep(3) is finished executing, the idle message meant for sleep(3) will actually have the parent header of the sleep(2) request. It seems to be related to JuliaLang/julia#19594 which removes the behavior of @async to implicitly capture local variables.

src/eventloop.jl Outdated
sleep(idle_delay[])
flush_all()
send_status("idle", msg)
let msg = msg
Copy link
Member

Choose a reason for hiding this comment

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

maybe add a comment referencing this PR or JuliaLang/julia#19594

@stevengj stevengj merged commit 668c773 into JuliaLang:master Jan 23, 2018
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