@teamkeel/testing-runtime 0.422.1 → 0.422.3
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/README.md +1 -1
- package/package.json +2 -2
- package/src/FlowExecutor.mjs +12 -0
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamkeel/testing-runtime",
|
|
3
|
-
"version": "0.422.
|
|
3
|
+
"version": "0.422.3",
|
|
4
4
|
"description": "Internal package used by the generated @teamkeel/testing package",
|
|
5
5
|
"exports": "./src/index.mjs",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prettier": "3.1.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@teamkeel/functions-runtime": "^0.
|
|
21
|
+
"@teamkeel/functions-runtime": "^0.422.1",
|
|
22
22
|
"jsonwebtoken": "^9.0.2",
|
|
23
23
|
"kysely": "^0.27.6",
|
|
24
24
|
"lodash.ismatch": "^4.4.0",
|
package/src/FlowExecutor.mjs
CHANGED
|
@@ -160,6 +160,18 @@ export class FlowExecutor {
|
|
|
160
160
|
return flow;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
if (flow.status === "COMPLETED") {
|
|
164
|
+
throw new Error(
|
|
165
|
+
`flow run status reached a completed state and therefore cannot become AWAITING_INPUT`
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (flow.status === "FAILED") {
|
|
170
|
+
throw new Error(
|
|
171
|
+
`flow run status reached a failed state and therefore cannot become AWAITING_INPUT`
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
163
175
|
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
164
176
|
}
|
|
165
177
|
}
|