worker

command
v0.0.0-...-5ed2604 Latest Latest
Warning

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

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

README

Worker

A worker that invokes the temporal cloud apis to perform various operations.

Temporal Cloud APIs are located at Repo: temporalio/cloud-api

Running the worker

Step 1: Generate an apikey

Generate an apikey by either visiting the Cloud UI or using tcld.

Step 2: Start local worker

Start local worker using the APIKey

TEMPORAL_CLOUD_API_KEY=<apikey> go run ./cmd/worker
Step 2: Start cloud worker

Start cloud worker using the Cloud Namespace, TLS Cert, TLS Key and APIKey

TEMPORAL_CLOUD_NAMESPACE=<namespace.accountId> TEMPORAL_CLOUD_TLS_CERT=</path/to/ca.pem> TEMPORAL_CLOUD_TLS_KEY=</path/to/ca.key> TEMPORAL_CLOUD_API_KEY=<apikey> go run ./cmd/worker
Step 3: Run a workflow

Run a workflow using tctl for example to invoke get-users workflow run:

tctl wf start --tq demo --wt tmprlcloud-wf.get-users -i '{}'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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