uber-go / cadence-client

Framework for authoring workflows and activities running on top of the Cadence orchestration engine.
https://cadenceworkflow.io
MIT License
349 stars 132 forks source link

Activity auto heartbeat #1051

Closed longquanzheng closed 3 years ago

longquanzheng commented 3 years ago

Is your feature request related to a problem? Please describe. Most people want to heartbeat their activities when the workers are still alive. So that when hosts going down the activities can be retried. Currently it requires users to implement heartbeat which is tedious to do.

This will be more useful than graceful shutdown feature: graceful shutdown doesn't guarantee to work as expected because when a host going down, it probably cannot wait too long. Sometimes it's just crash within a second.

https://github.com/uber-go/cadence-client/issues/818

Proposed Solution Provide an option to automatically sending heartbeat for activities.

Additional context NA