File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Execution of a Python code snippet: `print("hello")`
54
54
``` mermaid
55
55
sequenceDiagram
56
56
Frontend->>+Server: POST /api/kernels/<id>/execute
57
- Server->>+ExecutionStack: Create asyncio.Task
57
+ Server->>+ExecutionStack: Queue request
58
58
ExecutionStack->>Kernel: Execute request msg
59
59
activate Kernel
60
60
ExecutionStack-->>Server: Task uid
@@ -85,7 +85,7 @@ Execution of a Python code snippet: `input("Age:")`
85
85
``` mermaid
86
86
sequenceDiagram
87
87
Frontend->>+Server: POST /api/kernels/<id>/execute
88
- Server->>+ExecutionStack: Create asyncio.Task
88
+ Server->>+ExecutionStack: Queue request
89
89
ExecutionStack->>Kernel: Execute request msg
90
90
activate Kernel
91
91
ExecutionStack-->>Server: Task uid
@@ -122,6 +122,14 @@ sequenceDiagram
122
122
Server-->>-Frontend: Status 200 & result
123
123
```
124
124
125
+ > [ !NOTE]
126
+ > The code snippet is always send in the body of the POST ` /api/kernels/<id>/execute `
127
+ > request to avoid document model discrepancy; the document on the backend is only
128
+ > eventually identical with the frontends (document updates are not instantaneous).
129
+ >
130
+ > The ` ExecutionStack ` maintains an execution queue per kernels to ensure execution
131
+ > order.
132
+
125
133
## Contributing
126
134
127
135
### Development install
You can’t perform that action at this time.
0 commit comments