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/index.cjs +9 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +2 -0
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +2 -0
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/testing.cjs
CHANGED
|
@@ -15998,9 +15998,11 @@ function sha256(s) {
|
|
|
15998
15998
|
}
|
|
15999
15999
|
|
|
16000
16000
|
// src/server/runner/step.ts
|
|
16001
|
+
var DUE_SKEW_MS = 1e3;
|
|
16001
16002
|
async function processOneRunStep(runId, ctx) {
|
|
16002
16003
|
const run = await ctx.collections.flowRuns.findOne({ _id: runId });
|
|
16003
16004
|
if (!run || run.status !== "active") return;
|
|
16005
|
+
if (run.nextActionAt && run.nextActionAt.getTime() > Date.now() + DUE_SKEW_MS) return;
|
|
16004
16006
|
const flow = await ctx.collections.flows.findOne({ _id: run.flowId });
|
|
16005
16007
|
if (!flow) {
|
|
16006
16008
|
await failFlowRun(run, "flow_missing", ctx);
|