mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
## What changed? - [[Nexus-Chasm] Improve nexus operation dynamic config](https://github.com/temporalio/temporal/commit/59a7068417085b199a7d65efa0d02f6b117be6bc) - [[Nexus-Chasm] Improve operation state machine and task handlers](https://github.com/temporalio/temporal/commit/c6f1fa83b285c87dba92fdb7970aa695476cb277) - [[Nexus-Chasm] Refactor workflow registry and nexus workflow integration](https://github.com/temporalio/temporal/commit/45d0cfca84a1e3b0669e6994a27198de7bff4a33) ## Why? - Cleanup - Improved test coverage - Bug fixes
22 lines
557 B
Go
22 lines
557 B
Go
package nexusoperations
|
|
|
|
import (
|
|
chasmnexus "go.temporal.io/server/chasm/lib/nexusoperation"
|
|
"go.uber.org/fx"
|
|
)
|
|
|
|
var Module = fx.Module(
|
|
"component.nexusoperations",
|
|
fx.Provide(ConfigProvider),
|
|
fx.Invoke(RegisterStateMachines),
|
|
fx.Invoke(RegisterTaskSerializers),
|
|
fx.Invoke(RegisterEventDefinitions),
|
|
fx.Invoke(RegisterExecutor),
|
|
// Bridge CHASM ClientProvider to HSM ClientProvider type.
|
|
fx.Provide(func(cp chasmnexus.ClientProvider) ClientProvider {
|
|
return ClientProvider(cp)
|
|
}),
|
|
)
|
|
|
|
const NexusCallbackSourceHeader = "Nexus-Callback-Source"
|