mailery 0.10.0 → 0.10.2

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/testing.js CHANGED
@@ -15985,9 +15985,11 @@ function sha256(s) {
15985
15985
  }
15986
15986
 
15987
15987
  // src/server/runner/step.ts
15988
+ var DUE_SKEW_MS = 1e3;
15988
15989
  async function processOneRunStep(runId, ctx) {
15989
15990
  const run = await ctx.collections.flowRuns.findOne({ _id: runId });
15990
15991
  if (!run || run.status !== "active") return;
15992
+ if (run.nextActionAt && run.nextActionAt.getTime() > Date.now() + DUE_SKEW_MS) return;
15991
15993
  const flow = await ctx.collections.flows.findOne({ _id: run.flowId });
15992
15994
  if (!flow) {
15993
15995
  await failFlowRun(run, "flow_missing", ctx);