We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b69b54 commit 692434cCopy full SHA for 692434c
template/server/messaging.py
@@ -294,9 +294,6 @@ async def execute(
294
if self._ws is None:
295
raise Exception("WebSocket not connected")
296
297
- message_id = str(uuid.uuid4())
298
- execution = Execution()
299
-
300
# Lock only the setup + send phase, not the streaming phase.
301
# Results are read from a per-execution queue (keyed by message_id)
302
# so streaming doesn't need serialization. Releasing before streaming
@@ -335,6 +332,8 @@ async def execute(
335
332
)
336
333
complete_code = f"{indented_env_code}\n{complete_code}"
337
334
+ message_id = str(uuid.uuid4())
+ execution = Execution()
338
self._executions[message_id] = execution
339
340
# Send the code for execution
0 commit comments