@dudousxd/nestjs-durable 0.66.0 → 0.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1593,6 +1593,15 @@ var ThinWorkerBootstrap = class {
1593
1593
  ...options.concurrency !== void 0 ? {
1594
1594
  concurrency: options.concurrency
1595
1595
  } : {},
1596
+ ...options.lockDuration !== void 0 ? {
1597
+ lockDuration: options.lockDuration
1598
+ } : {},
1599
+ ...options.stalledInterval !== void 0 ? {
1600
+ stalledInterval: options.stalledInterval
1601
+ } : {},
1602
+ ...options.maxStalledCount !== void 0 ? {
1603
+ maxStalledCount: options.maxStalledCount
1604
+ } : {},
1596
1605
  // Announce the app's schedules (an empty list too) so the control plane adopts, updates and
1597
1606
  // withdraws them: a tenant has no store to fire them from.
1598
1607
  ...await tenantScheduleAnnouncement(options, this.auth.tenantToken)
@@ -1690,7 +1699,12 @@ function thinWorkerProviders() {
1690
1699
  // optional `@dudousxd/durable-worker` peer, so an operator that never runs a worker must not
1691
1700
  // reach this branch at all.
1692
1701
  useFactory: /* @__PURE__ */ __name((options) => isPureThinWorker(options) ? createWorkerRuntime({
1693
- workflowGroup: options.partition ?? ""
1702
+ workflowGroup: options.partition ?? "",
1703
+ // The worker unwinds a failed turn's `localStep` undos itself, so it takes the
1704
+ // module's `compensationRetries` as the engine does.
1705
+ ...options.compensationRetries !== void 0 ? {
1706
+ compensationRetries: options.compensationRetries
1707
+ } : {}
1694
1708
  }) : null, "useFactory"),
1695
1709
  inject: [
1696
1710
  import_nestjs_durable_core9.DURABLE_OPTIONS_CANONICAL
@@ -1942,6 +1956,15 @@ var InAppWorkerBootstrap = class {
1942
1956
  } : {},
1943
1957
  ...options.concurrency !== void 0 ? {
1944
1958
  concurrency: options.concurrency
1959
+ } : {},
1960
+ ...options.lockDuration !== void 0 ? {
1961
+ lockDuration: options.lockDuration
1962
+ } : {},
1963
+ ...options.stalledInterval !== void 0 ? {
1964
+ stalledInterval: options.stalledInterval
1965
+ } : {},
1966
+ ...options.maxStalledCount !== void 0 ? {
1967
+ maxStalledCount: options.maxStalledCount
1945
1968
  } : {}
1946
1969
  });
1947
1970
  this.runners.push(handle);
@@ -1991,7 +2014,12 @@ function inAppWorkerProviders() {
1991
2014
  // optional `@dudousxd/durable-worker` peer, so an operator that never runs a worker must not
1992
2015
  // reach this branch at all.
1993
2016
  useFactory: /* @__PURE__ */ __name((options) => isCoLocatedWorker(options) ? createWorkerRuntime({
1994
- workflowGroup: options.partition ?? ""
2017
+ workflowGroup: options.partition ?? "",
2018
+ // The worker unwinds a failed turn's `localStep` undos itself, so it takes the
2019
+ // module's `compensationRetries` as the engine does.
2020
+ ...options.compensationRetries !== void 0 ? {
2021
+ compensationRetries: options.compensationRetries
2022
+ } : {}
1995
2023
  }) : null, "useFactory"),
1996
2024
  inject: [
1997
2025
  import_nestjs_durable_core11.DURABLE_OPTIONS_CANONICAL