You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new worker implementation and a hello world workflow with detailed CLI (#77)
* Add new worker implementation and a hello world workflow with detailed CLI
* Add comments to public functions and structs
* delete types.go file and directly put type definition into workflow implementation
* Directly register workflows and activities inside worker instead of globally registration in main
* make hello world sample return the value instead of just printing in log
* Use fx as worker host
* Match definition order when initializing variables
Co-authored-by: Steven L <[email protected]>
* Update new_samples/README.md
Done
Co-authored-by: Steven L <[email protected]>
* Use cadence-samples as domain name
* Use infinite loop for worker process
* Use signal to interrupt cadence worker
* Update new_samples/README.md
Co-authored-by: Steven L <[email protected]>
* Update new_samples/main.go
Co-authored-by: Steven L <[email protected]>
* Update new_samples/README.md
Co-authored-by: Steven L <[email protected]>
* update readme
* Update new_samples/worker/worker.go
Co-authored-by: Steven L <[email protected]>
* Update new_samples/worker/worker.go
Co-authored-by: Steven L <[email protected]>
* Update new_samples/worker/worker.go
Co-authored-by: Steven L <[email protected]>
* Update new_samples/worker/worker.go
Co-authored-by: Steven L <[email protected]>
---------
Co-authored-by: Steven L <[email protected]>
* Cadence's Go client: https://github.com/uber-go/cadence-client
6
+
7
+
## Prerequisite
8
+
0. Install Cadence CLI. See instruction [here](https://cadenceworkflow.io/docs/cli/).
9
+
1. Run the Cadence server: https://github.com/uber/cadence/blob/master/README.md
10
+
2. Register the `cadence-samples` domain: https://cadenceworkflow.io/docs/cli/#quick-start or https://github.com/uber/cadence/blob/master/tools/cli/README.md
11
+
12
+
13
+
14
+
## Steps to run samples
15
+
Simply start the go binary by running
16
+
```bash
17
+
go run main.go
18
+
```
19
+
Then you may interact with the samples using Cadence CLI. You may start multiple workers by running
20
+
this binary. Here are a list of example CLIs you may use to play with the samples.
21
+
22
+
### HelloWorld workflow
23
+
This workflow takes an input message and greet you as response. Try the following CLI
0 commit comments