mailery 0.10.0 → 0.10.1
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 +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- 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/index.cjs
CHANGED
|
@@ -2303,9 +2303,11 @@ function sha256(s) {
|
|
|
2303
2303
|
}
|
|
2304
2304
|
|
|
2305
2305
|
// src/server/runner/step.ts
|
|
2306
|
+
var DUE_SKEW_MS = 1e3;
|
|
2306
2307
|
async function processOneRunStep(runId, ctx) {
|
|
2307
2308
|
const run = await ctx.collections.flowRuns.findOne({ _id: runId });
|
|
2308
2309
|
if (!run || run.status !== "active") return;
|
|
2310
|
+
if (run.nextActionAt && run.nextActionAt.getTime() > Date.now() + DUE_SKEW_MS) return;
|
|
2309
2311
|
const flow = await ctx.collections.flows.findOne({ _id: run.flowId });
|
|
2310
2312
|
if (!flow) {
|
|
2311
2313
|
await failFlowRun(run, "flow_missing", ctx);
|
|
@@ -7608,7 +7610,7 @@ var DEDUPE_POLICIES = [
|
|
|
7608
7610
|
];
|
|
7609
7611
|
|
|
7610
7612
|
// src/server/index.ts
|
|
7611
|
-
var VERSION = "0.10.
|
|
7613
|
+
var VERSION = "0.10.1" ;
|
|
7612
7614
|
|
|
7613
7615
|
exports.DEDUPE_POLICIES = DEDUPE_POLICIES;
|
|
7614
7616
|
exports.FLOW_STEP_KINDS = FLOW_STEP_KINDS;
|