Skip to content

Commit 7ac63c5

Browse files
authored
Fix sequence diagram background (#1009)
1 parent 85b9f09 commit 7ac63c5

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

arch_docs/sdks_intro.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,13 @@ refer back to this diagram during later explanations.
119119
```mermaid
120120
%%{ init : { "theme" : "default", "themeVariables" : { "background" : "#fff" }}}%%
121121
sequenceDiagram
122-
participant Client
123-
participant Server
124-
participant SDK
125-
participant UserCode as "User Code"
122+
box rgb(255, 255, 255)
123+
participant Client
124+
participant Server
125+
participant SDK
126+
participant UserCode as "User Code"
127+
end
128+
126129
Client ->> Server: StartWorkflowExecution RPC
127130
Server ->> Server: Generate Workflow Task & persist
128131
Server -->> Client: runID
@@ -280,7 +283,7 @@ with a command already in history.
280283
If the order of arguments to `asyncio.gather` is swapped in the previous example Workflow, replaying
281284
the Workflow will result in a nondeterminism error (often referred to as an "NDE"):
282285

283-
```
286+
```
284287
temporalio.workflow.NondeterminismError: Workflow activation completion failed: Failure { failure:
285288
Some(Failure { message: "[TMPRL1100] Nondeterminism error: Timer machine does not handle this event:
286289
HistoryEvent(id: 5, ActivityTaskScheduled)", source: "", stack_trace: "", encoded_attributes: None,
@@ -293,4 +296,4 @@ This error occurs because the "dual" events in the history are not in the same o
293296
produced by the modified Workflow code. The timer machine, expecting a `TimerStarted` event,
294297
encounters an `ActivityTaskScheduled` event instead, leading to a nondeterminism error. In other
295298
words, we did not produce the same commands in the same order. This mechanism ensures Workflow state
296-
consistency.
299+
consistency.

0 commit comments

Comments
 (0)