-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds xns proto options for specifying defaults
- Loading branch information
Showing
23 changed files
with
2,309 additions
and
760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# example protoc-gen-go-temporal usage | ||
|
||
In an initial terminal: | ||
1. Start temporal | ||
```shell | ||
temporal server start-dev --dynamic-config-value "frontend.enableUpdateWorkflowExecution=true" | ||
``` | ||
|
||
In a second terminal: | ||
2. Create search attributes in default namespace | ||
```shell | ||
temporal operator search-attribute create --name foo --type Text | ||
temporal operator search-attribute create --name created_at --type Datetime | ||
``` | ||
3. Create `external` namespace | ||
```shell | ||
temporal operator namespace create external | ||
temporal operator search-attribute create --namespace external --name foo --type Text | ||
temporal operator search-attribute create --namespace external --name created_at --type Datetime | ||
``` | ||
3. Run `example` worker | ||
```shell | ||
go run example/main.go worker | ||
``` | ||
|
||
In a third terminal: | ||
1. Run `external` worker | ||
```shell | ||
go run example/main.go external worker | ||
``` | ||
|
||
In a fourth terminal: | ||
1. Execute a workflow | ||
```shell | ||
go run example/main.go external provision-foo --request-name test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.