@cloudflare/think 0.8.7 → 0.8.8

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/think.js CHANGED
@@ -2811,6 +2811,7 @@ var Think = class Think extends Agent {
2811
2811
  if (recovered) this._startWorkflowNotificationDrain();
2812
2812
  }
2813
2813
  _startWorkflowNotificationDrain() {
2814
+ if (!this._hasPendingWorkflowNotifications()) return;
2814
2815
  this.keepAliveWhile(() => this._drainWorkflowNotifications()).catch((error) => {
2815
2816
  console.error("[Think] Failed to drain workflow notifications", error);
2816
2817
  this._scheduleWorkflowNotificationAlarm();