Skip to content

Commit 6b5997f

Browse files
committed
syntax highlighting improvements
1 parent d5f0ba2 commit 6b5997f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/01-get-started/01-server-installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Follow the Docker installation instructions found here: [https://docs.docker.com
1919
## 1. Run Cadence Server Using Docker Compose
2020

2121
Download the Cadence docker-compose file:
22-
```bash
2322

23+
```bash
2424
curl -O https://raw.githubusercontent.com/cadence-workflow/cadence/master/docker/docker-compose.yml && curl -O https://raw.githubusercontent.com/cadence-workflow/cadence/master/docker/prometheus/prometheus.yml
2525
```
2626
Then start Cadence Service by running:
@@ -35,8 +35,8 @@ In a new terminal, create a new domain called `test-domain` (or choose whatever
3535
docker run --network=host --rm ubercadence/cli:master --do test-domain domain register -rd 1
3636
```
3737
Check that the domain is indeed registered:
38-
```bash
39-
> docker run --network=host --rm ubercadence/cli:master --do test-domain domain describe
38+
```shell-session
39+
$ docker run --network=host --rm ubercadence/cli:master --do test-domain domain describe
4040
Name: test-domain
4141
Description:
4242
OwnerEmail:
@@ -52,7 +52,7 @@ Bad binaries to reset:
5252
| BINARY CHECKSUM | OPERATOR | START TIME | REASON |
5353
+-----------------+----------+------------+--------+
5454
+-----------------+----------+------------+--------+
55-
>
55+
$
5656
```
5757

5858
Please remember the domains you created because they will be used in your worker implementation and Cadence CLI commands.

docs/04-java-client/10-signals.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ Note that the restart of the :worker: didn't affect the :workflow_execution:. It
111111
This is the most important feature of Cadence. The :workflow: code doesn't need to deal with :worker: failures at all. Its state is fully recovered to its current state that includes all the local variables and threads.
112112

113113
Let's look at the line where the :workflow: is blocked:
114-
```bash
115-
> docker run --network=host --rm ubercadence/cli:master --do test-domain workflow stack --workflow_id "Hello2"
114+
```sh-session
115+
$ docker run --network=host --rm ubercadence/cli:master --do test-domain workflow stack --workflow_id "Hello2"
116116
Query result:
117117
"workflow-root: (BLOCKED on await)
118118
com.uber.cadence.internal.sync.SyncDecisionContext.await(SyncDecisionContext.java:546)
@@ -125,7 +125,7 @@ sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)"
125125
Yes, indeed the :workflow: is blocked on await. This feature works for any open :workflow:, greatly simplifying troubleshooting in production.
126126
Let's complete the :workflow: by sending a :signal: with a "Bye" greeting:
127127

128-
```bash
128+
```log
129129
16:58:22.962 [workflow-root] INFO c.u.c.samples.hello.GettingStarted - 4: Bye World!
130130
```
131131
Note that the value of the count variable was not lost during the restart.
@@ -141,8 +141,8 @@ run and then send the :signal:. `SignalWithStartWorkflow` therefore doesn't take
141141
parameter.
142142

143143
Learn more from the `--help` manual:
144-
```bash
145-
docker run --network=host --rm ubercadence/cli:master --do test-domain workflow signalwithstart -h
144+
```sh-session
145+
$ docker run --network=host --rm ubercadence/cli:master --do test-domain workflow signalwithstart -h
146146
NAME:
147147
cadence workflow signalwithstart - signal the current open workflow if exists, or attempt to start a new run based on IDResuePolicy and signals it
148148

0 commit comments

Comments
 (0)