ctxpropagation

command
Version: v0.0.0-...-f7d131a Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

This sample workflow demos context propagation through a workflow. Details about context propagation are available here.

The sample workflow initializes the client with a context propagator which propagates specific information in the context.Context object across the workflow. The context.Context object is populated with the information prior to calling StartWorkflow. The workflow demonstrates that the information is available in the workflow and any activities executed.

Steps to run this sample:

  1. You need a cadence service running. See details in cmd/samples/README.md
  2. Run the following command multiple times on different console window. This is to simulate running workers on multiple different machines.
./bin/ctxpropagation -m worker
  1. Run the following command to execute the context .
./bin/ctxpropagation -m trigger

You should see prints showing the context information available in the workflow and activities.

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