Skip to content

Files

Latest commit

a41fd99 · Jan 29, 2025

History

History

xns

An example of calling proto workflows, queries, signals, and updates hosted by a worker in one namespace from a workflow in a different namespace (or cluster).

Getting Started

In an initial terminal:

  1. Start temporal
    temporal server start-dev \
        --dynamic-config-value "frontend.enableUpdateWorkflowExecution=true" \
        --dynamic-config-value "frontend.enableUpdateWorkflowExecutionAsyncAccepted=true"
  2. In a different terminal, create example namespace and run the worker
    temporal operator namespace create example
    go run ./examples/xns/... worker
  3. In a different terminal, execute an xns workflow
    go run ./examples/xns/... xns provision-foo --name test