cschleiden / go-workflows

Embedded durable workflows for Golang similar to DTFx/Cadence/Temporal
https://cschleiden.github.io/go-workflows/
MIT License
229 stars 49 forks source link

How to get the workflow version? #355

Closed rullyalves closed 4 months ago

rullyalves commented 4 months ago

In the documentation it says that I can get the workflow version with: workflow.Version, but I checked the package and this function is not available

documentation link: https://cschleiden.github.io/go-workflows/#workflow-versioning

cschleiden commented 4 months ago

This is not supported:

Therefore for now versioning is not supported and the guidance is to rely on side-by-side deployments.

You pass in a version yourself as a parameter or you can use context propagation if you want this to be passed to sub-workflows etc.