OptionalenableLazyState?: booleanOptionalstate?: StatePreloadConfigures which state keys are preloaded ("eager state") for all invocations to this workflow. Can be overridden per handler. See StatePreload.
OptionalworkflowRetention?: Duration | numberThe retention duration for this workflow.
NOTE: You can set this field only if you register this endpoint against restate-server >= 1.4, otherwise the service discovery will fail.
Deprecated
Use
stateinstead:enableLazyState: trueis equivalent tostate: { preload: false }.