mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? - Wire up chasm workflow library ## Why? - #8485 makes workflow start to use CHASM as well and we need to register workflow as a chasm library. ## How did you test it? - [x] built - [ ] run locally and tested manually - [ ] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) ## Potential risks - Logic is only used when chasm feature flag is turned on. The change is mainly for functional tests.
15 lines
262 B
Go
15 lines
262 B
Go
package workflow
|
|
|
|
import (
|
|
"go.temporal.io/server/chasm"
|
|
"go.uber.org/fx"
|
|
)
|
|
|
|
var Module = fx.Module(
|
|
"chasm.lib.workflow",
|
|
fx.Provide(NewLibrary),
|
|
fx.Invoke(func(registry *chasm.Registry, library *Library) error {
|
|
return registry.Register(library)
|
|
}),
|
|
)
|