Skip to content

Latest commit

 

History

History
 
 

ActivityHeartbeatingCancellation

Activity Heartbeating and Cancellation

This sample demonstrates:

  • How a retried Activity Task can resume from the last Activity Task's heartbeat.
  • How to handle canceling a long-running Activity when its associated Workflow is canceled.

Docs: Activity heartbeating and Cancellation

To run, first see README.md for prerequisites. Then, run the following from this directory in a separate terminal to start the worker:

dotnet run worker

Then in another terminal, run the workflow from this directory:

dotnet run workflow

This will show logs in the worker window of the workflow running.