mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? Give the option to upgrade-on-Continue-as-New with a continue-as-new option. Ensure that Pinned Overrides are inherited across the entire continue-as-new chain, regardless of the initial versioning behavior of the continue-as-new. ## Why? To unlock "Trampolining" ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [x] added new functional test(s) --- > [!NOTE] > Introduces explicit Continue-as-New tracking and version-targeting across APIs and server internals. > > - Protos: add `target_deployment_version` to `RecordWorkflowTaskStartedRequest`; add repeated `workflow_task_suggest_continue_as_new_reasons` to persistence `WorkflowExecutionInfo`; regenerate bindings and enum imports > - History: plumb `target_deployment_version` through `AddWorkflowTaskStartedEvent`; include `suggest_continue_as_new_reasons` in `WorkflowTaskStarted` events; choose non-nil `VersioningOverride` when starting executions (user or inherited) > - Metrics: remove `workflow_update_continue_as_new_suggestions`; add `workflow_continue_as_new_count` and `workflow_suggest_continue_as_new_count`; introduce tags `continue_as_new_versioning_behavior` and per-reason suggest flags; tag helpers added > - Interfaces/tests: extend `MutableState.Add/ApplyWorkflowTaskStartedEvent` and `WorkflowTaskInfo` with suggest reasons; update call sites and tests; update `common/util_test.go` scan; bump `go.temporal.io/api` > > <sup>Written by [Cursor Bugbot]() for commit 849687bd0cee86dfa8a7949e76161a5c5a090f25. This will update automatically on new commits. Configure [here]().</sup>