example

command
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 21 Imported by: 0

README

example protoc-gen-go-temporal usage

In an initial terminal:

  1. Start temporal
    temporal server start-dev \
        --dynamic-config-value "frontend.enableUpdateWorkflowExecution=true" \
        --dynamic-config-value "frontend.enableUpdateWorkflowExecutionAsyncAccepted=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
    go run example/main.go external worker
    

In a fourth terminal:

  1. Execute a workflow
    go run example/main.go external provision-foo --request-name test
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL