package
0.0.0-20241019035157-984355d60e10
Repository: https://github.com/taonic/my-samples-go.git
Documentation: pkg.go.dev

# README

Steps to run this sample:

This example show cases an alternative way to set Workflow execution timeout that can be gracefully handled, as opposed to the server side timeout that when reached, worker cannot handle gracefully, i.e. WorkflowOptions.WorkflowExecutionTimeout

It uses the inbound interceptor ExecuteWorkflow to set a timer at the beginning of each Workflow execution and cancel the Workflow context when the timer fires.

To run the example:

go run timeout_interceptor/main.go

# Functions

No description provided by the author
No description provided by the author