docs: consolidate runnable examples and publish v0.1.1 guides
This commit is contained in:
@@ -88,13 +88,13 @@ return nil, &orbit.WorkerCancellationConfirmed{
|
||||
|
||||
## 4. 可运行场景
|
||||
|
||||
源码:[cancellation/main.go](../../sdk/go/examples/cancellation/main.go)。使用 [Worker 初始化](../sdk/worker-runtime.md) 的私有凭据文件,需 tasks:submit/read/cancel、workers:connect/consume 和队列范围。此示例只等待停止提示,没有外部业务副作用。
|
||||
源码:[cancellation/main.go](../../examples/cancellation/main.go)。使用 [Worker 初始化](../sdk/worker-runtime.md) 的私有凭据文件,需 tasks:submit/read/cancel、workers:connect/consume 和队列范围。此示例只等待停止提示,没有外部业务副作用。
|
||||
|
||||
```sh
|
||||
cd sdk/go
|
||||
cd examples
|
||||
ORBIT_URL=http://127.0.0.1:8080 \
|
||||
ORBIT_CREDENTIALS_FILE=/private/path/worker.credentials.json \
|
||||
go run ./examples/cancellation
|
||||
go run ./cancellation
|
||||
```
|
||||
|
||||
预期输出:
|
||||
|
||||
Reference in New Issue
Block a user