Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
13925c71
Commit
13925c71
authored
May 21, 2019
by
Tom McLaughlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move busy message as well
parent
cea94e8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
Main.hs
main/Main.hs
+6
-10
No files found.
main/Main.hs
View file @
13925c71
...
...
@@ -171,6 +171,12 @@ runKernel kOpts profileSrc = do
-- Create a header for the reply.
replyHeader
<-
createReplyHeader
(
header
request
)
-- Notify the frontend that the kernel is busy computing. All the headers are copies of the reply
-- header with a different message type, because this preserves the session ID, parent header, and
-- other important information.
busyHeader
<-
liftIO
$
dupHeader
replyHeader
StatusMessage
liftIO
$
writeChan
(
iopubChannel
interface
)
$
PublishStatus
busyHeader
Busy
-- We handle comm messages and normal ones separately. The normal ones are a standard
-- request/response style, while comms can be anything, and don't necessarily require a response.
if
isCommMessage
request
...
...
@@ -270,12 +276,6 @@ replyTo interface req@ExecuteRequest { getCode = code } replyHeader state = do
dir
<-
liftIO
getIHaskellDir
liftIO
$
Stdin
.
recordParentHeader
dir
$
header
req
-- Notify the frontend that the kernel is busy computing. All the headers are copies of the reply
-- header with a different message type, because this preserves the session ID, parent header, and
-- other important information.
busyHeader
<-
liftIO
$
dupHeader
replyHeader
StatusMessage
send
$
PublishStatus
busyHeader
Busy
-- Construct a function for publishing output as this is going. This function accepts a boolean
-- indicating whether this is the final output and the thing to display. Store the final outputs in
-- a list so that when we receive an updated non-final output, we can clear the entire output and
...
...
@@ -418,10 +418,6 @@ handleComm send kernelState req replyHeader = do
let
run
=
capturedIO
publish
kernelState
publish
=
publishResult
send
replyHeader
displayed
updateNeeded
pOut
toUsePager
-- Notify the frontend that the kernel is busy
busyHeader
<-
liftIO
$
dupHeader
replyHeader
StatusMessage
liftIO
.
send
$
PublishStatus
busyHeader
Busy
newState
<-
case
Map
.
lookup
uuid
widgets
of
Nothing
->
return
kernelState
Just
(
Widget
widget
)
->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment