Skip to content

Files

Latest commit

aeb6fa0 · Jan 3, 2024

History

History

snappycompress

Steps to run this sample:

  1. Run a Temporal service.
  2. Compile the snappycompress plugin for tctl
go build -o ../bin/snappycompress-plugin plugin/main.go
  1. Run the following command to start the worker
go run worker/main.go
  1. Run the following command to start the example
go run starter/main.go
  1. Run the following command and see the compressed payloads
export PATH="../bin:$PATH" TEMPORAL_CLI_PLUGIN_DATA_CONVERTER=snappycompress-plugin
tctl workflow show --wid snappycompress_workflowID

Note: plugins should normally be available in your PATH, we include the current directory in the path here for ease of testing.