@dbos-inc/dbos-sdk 1.19.5-preview → 1.19.8-preview

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../src/scheduler/scheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAA2B,MAAM,eAAe,CAAC;AAQhF,oBAAY,aAAa;IACrB,sBAAsB,2BAA2B;IACjD,gCAAgC,qCAAqC;CACxE;AAED,qBAAa,eAAe;IACxB,OAAO,EAAE,MAAM,CAAe;IAC9B,IAAK,CAAC,EAAE,aAAa,CAAwC;CAChE;AAOD,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AAExC,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IAErE,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC;AAED,wBAAgB,SAAS,CAAC,eAAe,EAAE,eAAe,uDAE1C,MAAM,eACD,MAAM,gBACL,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,aAAa,KAAK,QAAQ,MAAM,CAAC,CAAC,oGAS/G;AAMD,qBAAa,aAAa;IACV,QAAQ,CAAC,QAAQ,EAAE,YAAY;gBAAtB,QAAQ,EAAE,YAAY;IAE3C,UAAU,EAAE,cAAc,EAAE,CAAM;IAClC,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,EAAG,CAAM;IAElC,aAAa;IAgBP,gBAAgB;IActB,+BAA+B;CAUlC;AAED,cAAM,cAAc;IAMJ,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM;IAAE,QAAQ,CAAC,SAAS,EAAC,aAAa;IAC3F,QAAQ,CAAC,eAAe,EAAE,yBAAyB;IAN/D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AAG,CAAM;IAElC,aAAa;IAgBP,gBAAgB;IActB,+BAA+B;CAUlC;AAED,cAAM,cAAc;IAMJ,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM;IAAE,QAAQ,CAAC,SAAS,EAAC,aAAa;IAC3F,QAAQ,CAAC,eAAe,EAAE,yBAAyB;IAN/D,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,gBAAgB,CAAC,CAAa;IACtC,OAAO,CAAC,QAAQ,CAAO;IACvB,OAAO,CAAC,WAAW,CAAc;gBAEZ,QAAQ,EAAE,YAAY,EAAW,OAAO,EAAE,MAAM,EAAW,SAAS,EAAC,aAAa,EAClF,eAAe,EAAE,yBAAyB;IAOzD,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAqEhC,eAAe;IAQf,OAAO,CAAC,OAAO;CAGlB"}
@@ -103,11 +103,18 @@ class DetachableLoop {
103
103
  const sleepTime = nextExecTime.getTime() - new Date().getTime();
104
104
  if (sleepTime > 0) {
105
105
  // Wait for either the timeout or an interruption
106
+ let timer;
107
+ const timeoutPromise = new Promise((resolve) => {
108
+ timer = setTimeout(() => {
109
+ resolve();
110
+ }, sleepTime);
111
+ });
106
112
  await Promise.race([
107
- this.sleepms(sleepTime),
113
+ timeoutPromise,
108
114
  new Promise((_, reject) => this.interruptResolve = reject)
109
115
  ])
110
- .catch(); // Interrupt sleep throws
116
+ .catch(() => { this.dbosExec.logger.debug("Scheduler loop interrupted!"); }); // Interrupt sleep throws
117
+ clearTimeout(timer);
111
118
  }
112
119
  if (!this.isRunning) {
113
120
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"scheduler.js","sourceRoot":"","sources":["../../../src/scheduler/scheduler.ts"],"names":[],"mappings":";;;AAEA,8CAAgF;AAChF,uCAAwC;AAGxC,IAAI;AACJ,gBAAgB;AAChB,IAAI;AAEJ,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,kEAAiD,CAAA;IAC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