coinbase / temporal-ruby

Ruby SDK for Temporal
Apache License 2.0
213 stars 81 forks source link

History size and suggest continue as new #269

Closed jeffschoner closed 8 months ago

jeffschoner commented 8 months ago

Starting in Temporal server 1.20.0 (from https://github.com/temporalio/temporal/pull/3055), workflow task started history events contain attribute fields indicating the current history size (in bytes and in event count) and a bit indicating if the workflow should continue as new. This change surfaces this information on the workflow context.

This change includes a new example ContinueAsNewWorkflow showing how to use this.

DeRauk commented 8 months ago

Thanks @jeffschoner! This is a great new feature.