Skip to content

Commit 692434c

Browse files
committed
move back
1 parent 1b69b54 commit 692434c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

template/server/messaging.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,6 @@ async def execute(
294294
if self._ws is None:
295295
raise Exception("WebSocket not connected")
296296

297-
message_id = str(uuid.uuid4())
298-
execution = Execution()
299-
300297
# Lock only the setup + send phase, not the streaming phase.
301298
# Results are read from a per-execution queue (keyed by message_id)
302299
# so streaming doesn't need serialization. Releasing before streaming
@@ -335,6 +332,8 @@ async def execute(
335332
)
336333
complete_code = f"{indented_env_code}\n{complete_code}"
337334

335+
message_id = str(uuid.uuid4())
336+
execution = Execution()
338337
self._executions[message_id] = execution
339338

340339
# Send the code for execution

0 commit comments

Comments
 (0)