README ¶
helloworld
inspired by temporalio/samples-go/updatabletimer
Getting Started
- Run a temporal service
temporal server start-dev
- In a different shell, run the example worker
go run examples/updatabletimer/main.go worker
- In a different shell, execute the workflow
# initialize background timer for 1h in the future go run examples/updatabletimer/main.go updatable-timer \ --name example \ --initial-wake-up-time $(TZ=UTC date -v+1H "+%Y-%m-%dT%H:%M:%SZ") \ -d # query timer go run examples/updatabletimer/main.go get-wake-up-time -w updatable-timer/example # update timer for 30s in the future go run examples/updatabletimer/main.go update-wake-up-time \ -w updatable-timer/example \ --wake-up-time $(TZ=UTC date -v+30S "+%Y-%m-%dT%H:%M:%SZ")
Documentation ¶
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.