@hatchet-dev/typescript-sdk 1.10.3 → 1.10.4-alpha.0
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/package.json +1 -1
- package/v1/client/worker/worker.js +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -50,7 +50,8 @@ class Worker {
|
|
|
50
50
|
*/
|
|
51
51
|
registerWorkflows(workflows) {
|
|
52
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
|
|
53
|
+
const shuffled = [...(workflows || [])].sort(() => Math.random() - 0.5);
|
|
54
|
+
for (const wf of shuffled) {
|
|
54
55
|
if (wf instanceof declaration_1.BaseWorkflowDeclaration) {
|
|
55
56
|
// TODO check if tenant is V1
|
|
56
57
|
yield this.nonDurable.registerWorkflowV1(wf);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HATCHET_VERSION = "1.10.
|
|
1
|
+
export declare const HATCHET_VERSION = "1.10.4-alpha.0";
|
package/version.js
CHANGED