Skip to content

Latest commit

 

History

History

nexus-cancelation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Nexus Cancellation

This sample shows how to cancel a Nexus operation from a caller workflow.

From more details on Nexus and how to setup to run this samples please see the Nexus Sample.

Running the sample

In separate terminal windows:

Nexus handler worker

cd handler
go run ./worker \
    -target-host localhost:7233 \
    -namespace my-target-namespace

Nexus caller worker

cd caller
go run ./worker \
    -target-host localhost:7233 \
    -namespace my-caller-namespace

Start caller workflow

cd caller
go run ./starter \
    -target-host localhost:7233 \
    -namespace my-caller-namespace

Output

which should result in:

2025/02/27 12:57:40 Started workflow WorkflowID nexus_hello_caller_workflow_20240723195740 RunID c9789128-2fcd-4083-829d-95e43279f6d7
2025/02/27 12:57:40 Workflow result: ¡Hola! Nexus 👋