@workflow/world-testing 4.1.26 → 4.1.27
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.
|
@@ -51637,7 +51637,7 @@ init_dist();
|
|
|
51637
51637
|
init_node();
|
|
51638
51638
|
|
|
51639
51639
|
// ../core/dist/version.js
|
|
51640
|
-
var version2 = "4.8.
|
|
51640
|
+
var version2 = "4.8.12";
|
|
51641
51641
|
|
|
51642
51642
|
// ../core/dist/runtime/world.js
|
|
51643
51643
|
var import_node_module = require("node:module");
|
|
@@ -66109,12 +66109,25 @@ async function awaitEarlierDeliveries(ctx, eventIndex, kind) {
|
|
|
66109
66109
|
}
|
|
66110
66110
|
}
|
|
66111
66111
|
__name(awaitEarlierDeliveries, "awaitEarlierDeliveries");
|
|
66112
|
-
function registerDeliveryBarrier(ctx, eventIndex, kind, options
|
|
66112
|
+
function registerDeliveryBarrier(ctx, eventIndex, kind, options) {
|
|
66113
|
+
let deliveredToWorkflow = false;
|
|
66114
|
+
const deliver = /* @__PURE__ */ __name(() => {
|
|
66115
|
+
if (deliveredToWorkflow) {
|
|
66116
|
+
return false;
|
|
66117
|
+
}
|
|
66118
|
+
deliveredToWorkflow = true;
|
|
66119
|
+
ctx.advanceClock?.(options.deliveredAt);
|
|
66120
|
+
return true;
|
|
66121
|
+
}, "deliver");
|
|
66113
66122
|
const barriers = ctx.pendingDeliveryBarriers;
|
|
66114
66123
|
if (!barriers || eventIndex === void 0) {
|
|
66115
|
-
return {
|
|
66116
|
-
|
|
66117
|
-
|
|
66124
|
+
return {
|
|
66125
|
+
markDelivered: /* @__PURE__ */ __name(() => {
|
|
66126
|
+
deliver();
|
|
66127
|
+
}, "markDelivered"),
|
|
66128
|
+
arm: /* @__PURE__ */ __name(() => {
|
|
66129
|
+
}, "arm")
|
|
66130
|
+
};
|
|
66118
66131
|
}
|
|
66119
66132
|
let done = false;
|
|
66120
66133
|
const { promise: promise2, resolve: resolve3 } = withResolvers();
|
|
@@ -66137,7 +66150,12 @@ function registerDeliveryBarrier(ctx, eventIndex, kind, options = {}) {
|
|
|
66137
66150
|
barriers.set(eventIndex, entry);
|
|
66138
66151
|
ensureBarrierSafetyNet(ctx);
|
|
66139
66152
|
return {
|
|
66140
|
-
markDelivered:
|
|
66153
|
+
markDelivered: /* @__PURE__ */ __name(() => {
|
|
66154
|
+
if (!deliver()) {
|
|
66155
|
+
return;
|
|
66156
|
+
}
|
|
66157
|
+
finish();
|
|
66158
|
+
}, "markDelivered"),
|
|
66141
66159
|
arm: /* @__PURE__ */ __name(() => {
|
|
66142
66160
|
entry.armed = true;
|
|
66143
66161
|
}, "arm")
|
|
@@ -68748,7 +68766,9 @@ function createUseStep(ctx) {
|
|
|
68748
68766
|
if (event.eventType === "step_failed") {
|
|
68749
68767
|
ctx.invocationsQueue.delete(event.correlationId);
|
|
68750
68768
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
68751
|
-
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step"
|
|
68769
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step", {
|
|
68770
|
+
deliveredAt: +event.createdAt
|
|
68771
|
+
});
|
|
68752
68772
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "step");
|
|
68753
68773
|
ctx.promiseQueue = ctx.promiseQueue.then(() => {
|
|
68754
68774
|
const errorData = event.eventData.error;
|
|
@@ -68771,7 +68791,9 @@ function createUseStep(ctx) {
|
|
|
68771
68791
|
const completedEventId = event.eventId;
|
|
68772
68792
|
const serializedResult = event.eventData.result;
|
|
68773
68793
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
68774
|
-
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step"
|
|
68794
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step", {
|
|
68795
|
+
deliveredAt: +event.createdAt
|
|
68796
|
+
});
|
|
68775
68797
|
let outcome;
|
|
68776
68798
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "step");
|
|
68777
68799
|
ctx.pendingDeliveries++;
|
|
@@ -69409,6 +69431,26 @@ function createCreateHook(ctx) {
|
|
|
69409
69431
|
let hasConflict = false;
|
|
69410
69432
|
let conflictErrorRef = null;
|
|
69411
69433
|
let conflictRunRef = null;
|
|
69434
|
+
let registrationDelivered = Promise.resolve();
|
|
69435
|
+
function deliverRegistration(deliveredAt, settle) {
|
|
69436
|
+
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
69437
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "hook", {
|
|
69438
|
+
deliveredAt
|
|
69439
|
+
});
|
|
69440
|
+
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "hook");
|
|
69441
|
+
registrationDelivered = ctx.promiseQueue.then(() => earlierDelivered).then(() => {
|
|
69442
|
+
barrier.markDelivered();
|
|
69443
|
+
settle();
|
|
69444
|
+
});
|
|
69445
|
+
}
|
|
69446
|
+
__name(deliverRegistration, "deliverRegistration");
|
|
69447
|
+
function afterRegistration(settle) {
|
|
69448
|
+
const delivered = registrationDelivered;
|
|
69449
|
+
ctx.promiseQueue = ctx.promiseQueue.then(() => {
|
|
69450
|
+
void delivered.then(settle);
|
|
69451
|
+
});
|
|
69452
|
+
}
|
|
69453
|
+
__name(afterRegistration, "afterRegistration");
|
|
69412
69454
|
webhookLogger.debug("Hook consumer setup", { correlationId, token });
|
|
69413
69455
|
ctx.eventsConsumer.subscribe((event) => {
|
|
69414
69456
|
if (!event) {
|
|
@@ -69438,7 +69480,7 @@ function createCreateHook(ctx) {
|
|
|
69438
69480
|
hasCreated = true;
|
|
69439
69481
|
const pendingGetConflictPromises = getConflictPromises.slice();
|
|
69440
69482
|
getConflictPromises.length = 0;
|
|
69441
|
-
|
|
69483
|
+
deliverRegistration(+event.createdAt, () => {
|
|
69442
69484
|
for (const resolver2 of pendingGetConflictPromises) {
|
|
69443
69485
|
resolver2.resolve(null);
|
|
69444
69486
|
}
|
|
@@ -69456,7 +69498,7 @@ function createCreateHook(ctx) {
|
|
|
69456
69498
|
promises.length = 0;
|
|
69457
69499
|
const pendingGetConflictPromises = getConflictPromises.slice();
|
|
69458
69500
|
getConflictPromises.length = 0;
|
|
69459
|
-
|
|
69501
|
+
deliverRegistration(+event.createdAt, () => {
|
|
69460
69502
|
for (const resolver2 of pendingPromises) {
|
|
69461
69503
|
resolver2.reject(conflictError);
|
|
69462
69504
|
}
|
|
@@ -69474,7 +69516,8 @@ function createCreateHook(ctx) {
|
|
|
69474
69516
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
69475
69517
|
const hasWaitingConsumer = promises.length > 0;
|
|
69476
69518
|
const barrier = registerDeliveryBarrier(ctx, eventIndex, "hook", {
|
|
69477
|
-
armed: hasWaitingConsumer
|
|
69519
|
+
armed: hasWaitingConsumer,
|
|
69520
|
+
deliveredAt: +event.createdAt
|
|
69478
69521
|
});
|
|
69479
69522
|
if (hasWaitingConsumer) {
|
|
69480
69523
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "hook");
|
|
@@ -69544,7 +69587,7 @@ function createCreateHook(ctx) {
|
|
|
69544
69587
|
function createHookPromise() {
|
|
69545
69588
|
const resolvers = withResolvers();
|
|
69546
69589
|
if (hasConflict && conflictErrorRef) {
|
|
69547
|
-
|
|
69590
|
+
afterRegistration(() => {
|
|
69548
69591
|
resolvers.reject(conflictErrorRef);
|
|
69549
69592
|
});
|
|
69550
69593
|
return resolvers.promise;
|
|
@@ -69567,13 +69610,13 @@ function createCreateHook(ctx) {
|
|
|
69567
69610
|
function createGetConflictPromise() {
|
|
69568
69611
|
const resolvers = withResolvers();
|
|
69569
69612
|
if (hasCreated) {
|
|
69570
|
-
|
|
69613
|
+
afterRegistration(() => {
|
|
69571
69614
|
resolvers.resolve(null);
|
|
69572
69615
|
});
|
|
69573
69616
|
return resolvers.promise;
|
|
69574
69617
|
}
|
|
69575
69618
|
if (hasConflict) {
|
|
69576
|
-
|
|
69619
|
+
afterRegistration(() => {
|
|
69577
69620
|
if (conflictRunRef) {
|
|
69578
69621
|
resolvers.resolve(conflictRunRef);
|
|
69579
69622
|
} else {
|
|
@@ -69691,7 +69734,9 @@ function createSleep(ctx) {
|
|
|
69691
69734
|
}
|
|
69692
69735
|
ctx.invocationsQueue.delete(correlationId);
|
|
69693
69736
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
69694
|
-
const barrier = registerDeliveryBarrier(ctx, eventIndex, "wait"
|
|
69737
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "wait", {
|
|
69738
|
+
deliveredAt: +event.createdAt
|
|
69739
|
+
});
|
|
69695
69740
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "wait");
|
|
69696
69741
|
const queueAtCompletion = ctx.promiseQueue;
|
|
69697
69742
|
void queueAtCompletion.then(() => earlierDelivered).then(() => {
|
|
@@ -69753,10 +69798,14 @@ async function runWorkflow(workflowCode2, workflowRun, events, encryptionKey, st
|
|
|
69753
69798
|
const generateNanoid = customRandom(urlAlphabet, 21, (size) => new Uint8Array(size).map(() => 256 * vmGlobalThis.Math.random()));
|
|
69754
69799
|
const promiseQueueHolder = { current: Promise.resolve() };
|
|
69755
69800
|
const deliveryIdleHolder = { current: /* @__PURE__ */ __name(() => true, "current") };
|
|
69801
|
+
let clock = +startedAt;
|
|
69802
|
+
const advanceClock = /* @__PURE__ */ __name((at) => {
|
|
69803
|
+
if (at > clock) {
|
|
69804
|
+
clock = at;
|
|
69805
|
+
updateTimestamp(at);
|
|
69806
|
+
}
|
|
69807
|
+
}, "advanceClock");
|
|
69756
69808
|
const eventsConsumer = new EventsConsumer(events, {
|
|
69757
|
-
onConsumedEvent: /* @__PURE__ */ __name((event) => {
|
|
69758
|
-
updateTimestamp(+event.createdAt);
|
|
69759
|
-
}, "onConsumedEvent"),
|
|
69760
69809
|
onUnconsumedEvent: /* @__PURE__ */ __name((event) => {
|
|
69761
69810
|
workflowDiscontinuation.reject(new ReplayDivergenceError(`Replay could not consume event: eventType=${event.eventType}, correlationId=${event.correlationId}, eventId=${event.eventId}.`, { eventId: event.eventId }));
|
|
69762
69811
|
}, "onUnconsumedEvent"),
|
|
@@ -69782,6 +69831,7 @@ async function runWorkflow(workflowCode2, workflowRun, events, encryptionKey, st
|
|
|
69782
69831
|
},
|
|
69783
69832
|
pendingDeliveries: 0,
|
|
69784
69833
|
pendingDeliveryBarriers: /* @__PURE__ */ new Map(),
|
|
69834
|
+
advanceClock,
|
|
69785
69835
|
stepHydrationCache
|
|
69786
69836
|
};
|
|
69787
69837
|
deliveryIdleHolder.current = () => isDeliveryIdle(workflowContext);
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"steps": {
|
|
4
|
+
"workflows/addition.ts": {
|
|
5
|
+
"add": {
|
|
6
|
+
"stepId": "step//./workflows/addition//add"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
4
9
|
"workflows/event-limit.ts": {
|
|
5
10
|
"tick": {
|
|
6
11
|
"stepId": "step//./workflows/event-limit//tick"
|
|
7
12
|
}
|
|
8
13
|
},
|
|
9
|
-
"workflows/
|
|
10
|
-
"
|
|
11
|
-
"stepId": "step//./workflows/
|
|
14
|
+
"workflows/retriable-and-fatal.ts": {
|
|
15
|
+
"stepThatFails": {
|
|
16
|
+
"stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
|
|
17
|
+
},
|
|
18
|
+
"stepThatThrowsRetryableError": {
|
|
19
|
+
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
12
20
|
}
|
|
13
21
|
},
|
|
14
22
|
"workflows/null-byte.ts": {
|
|
@@ -16,6 +24,16 @@
|
|
|
16
24
|
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
17
25
|
}
|
|
18
26
|
},
|
|
27
|
+
"workflow/dist/stdlib.js": {
|
|
28
|
+
"fetch": {
|
|
29
|
+
"stepId": "step//workflow@4.8.12//fetch"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"workflows/hooks.ts": {
|
|
33
|
+
"writeEvent": {
|
|
34
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
19
37
|
"workflow/dist/internal/builtins.js": {
|
|
20
38
|
"__builtin_response_array_buffer": {
|
|
21
39
|
"stepId": "__builtin_response_array_buffer"
|
|
@@ -31,37 +49,19 @@
|
|
|
31
49
|
"noop": {
|
|
32
50
|
"stepId": "step//./workflows/noop//noop"
|
|
33
51
|
}
|
|
34
|
-
},
|
|
35
|
-
"workflows/retriable-and-fatal.ts": {
|
|
36
|
-
"stepThatFails": {
|
|
37
|
-
"stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
|
|
38
|
-
},
|
|
39
|
-
"stepThatThrowsRetryableError": {
|
|
40
|
-
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"workflows/hooks.ts": {
|
|
44
|
-
"writeEvent": {
|
|
45
|
-
"stepId": "step//./workflows/hooks//writeEvent"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"workflow/dist/stdlib.js": {
|
|
49
|
-
"fetch": {
|
|
50
|
-
"stepId": "step//workflow@4.8.11//fetch"
|
|
51
|
-
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"workflows": {
|
|
55
|
-
"workflows/
|
|
56
|
-
"
|
|
57
|
-
"workflowId": "workflow//./workflows/
|
|
55
|
+
"workflows/addition.ts": {
|
|
56
|
+
"addition": {
|
|
57
|
+
"workflowId": "workflow//./workflows/addition//addition",
|
|
58
58
|
"graph": {
|
|
59
59
|
"nodes": [
|
|
60
60
|
{
|
|
61
61
|
"id": "start",
|
|
62
62
|
"type": "workflowStart",
|
|
63
63
|
"data": {
|
|
64
|
-
"label": "Start:
|
|
64
|
+
"label": "Start: addition",
|
|
65
65
|
"nodeKind": "workflow_start"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
@@ -69,12 +69,9 @@
|
|
|
69
69
|
"id": "node_0",
|
|
70
70
|
"type": "step",
|
|
71
71
|
"data": {
|
|
72
|
-
"label": "
|
|
72
|
+
"label": "add",
|
|
73
73
|
"nodeKind": "step",
|
|
74
|
-
"stepId": "step//./workflows/
|
|
75
|
-
},
|
|
76
|
-
"metadata": {
|
|
77
|
-
"loopId": "loop_0"
|
|
74
|
+
"stepId": "step//./workflows/addition//add"
|
|
78
75
|
}
|
|
79
76
|
},
|
|
80
77
|
{
|
|
@@ -87,12 +84,6 @@
|
|
|
87
84
|
}
|
|
88
85
|
],
|
|
89
86
|
"edges": [
|
|
90
|
-
{
|
|
91
|
-
"id": "e_node_0_back_node_0",
|
|
92
|
-
"source": "node_0",
|
|
93
|
-
"target": "node_0",
|
|
94
|
-
"type": "loop"
|
|
95
|
-
},
|
|
96
87
|
{
|
|
97
88
|
"id": "e_start_node_0",
|
|
98
89
|
"source": "start",
|
|
@@ -109,16 +100,16 @@
|
|
|
109
100
|
}
|
|
110
101
|
}
|
|
111
102
|
},
|
|
112
|
-
"workflows/
|
|
113
|
-
"
|
|
114
|
-
"workflowId": "workflow//./workflows/
|
|
103
|
+
"workflows/event-limit.ts": {
|
|
104
|
+
"runawayWorkflow": {
|
|
105
|
+
"workflowId": "workflow//./workflows/event-limit//runawayWorkflow",
|
|
115
106
|
"graph": {
|
|
116
107
|
"nodes": [
|
|
117
108
|
{
|
|
118
109
|
"id": "start",
|
|
119
110
|
"type": "workflowStart",
|
|
120
111
|
"data": {
|
|
121
|
-
"label": "Start:
|
|
112
|
+
"label": "Start: runawayWorkflow",
|
|
122
113
|
"nodeKind": "workflow_start"
|
|
123
114
|
}
|
|
124
115
|
},
|
|
@@ -126,9 +117,12 @@
|
|
|
126
117
|
"id": "node_0",
|
|
127
118
|
"type": "step",
|
|
128
119
|
"data": {
|
|
129
|
-
"label": "
|
|
120
|
+
"label": "tick",
|
|
130
121
|
"nodeKind": "step",
|
|
131
|
-
"stepId": "step//./workflows/
|
|
122
|
+
"stepId": "step//./workflows/event-limit//tick"
|
|
123
|
+
},
|
|
124
|
+
"metadata": {
|
|
125
|
+
"loopId": "loop_0"
|
|
132
126
|
}
|
|
133
127
|
},
|
|
134
128
|
{
|
|
@@ -141,6 +135,12 @@
|
|
|
141
135
|
}
|
|
142
136
|
],
|
|
143
137
|
"edges": [
|
|
138
|
+
{
|
|
139
|
+
"id": "e_node_0_back_node_0",
|
|
140
|
+
"source": "node_0",
|
|
141
|
+
"target": "node_0",
|
|
142
|
+
"type": "loop"
|
|
143
|
+
},
|
|
144
144
|
{
|
|
145
145
|
"id": "e_start_node_0",
|
|
146
146
|
"source": "start",
|
|
@@ -157,16 +157,16 @@
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
|
-
"workflows/
|
|
161
|
-
"
|
|
162
|
-
"workflowId": "workflow//./workflows/
|
|
160
|
+
"workflows/retriable-and-fatal.ts": {
|
|
161
|
+
"retryableAndFatalErrorWorkflow": {
|
|
162
|
+
"workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
|
|
163
163
|
"graph": {
|
|
164
164
|
"nodes": [
|
|
165
165
|
{
|
|
166
166
|
"id": "start",
|
|
167
167
|
"type": "workflowStart",
|
|
168
168
|
"data": {
|
|
169
|
-
"label": "Start:
|
|
169
|
+
"label": "Start: retryableAndFatalErrorWorkflow",
|
|
170
170
|
"nodeKind": "workflow_start"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
@@ -174,9 +174,9 @@
|
|
|
174
174
|
"id": "node_0",
|
|
175
175
|
"type": "step",
|
|
176
176
|
"data": {
|
|
177
|
-
"label": "
|
|
177
|
+
"label": "stepThatThrowsRetryableError",
|
|
178
178
|
"nodeKind": "step",
|
|
179
|
-
"stepId": "step//./workflows/
|
|
179
|
+
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
{
|
|
@@ -205,16 +205,16 @@
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
|
-
"workflows/
|
|
209
|
-
"
|
|
210
|
-
"workflowId": "workflow//./workflows/
|
|
208
|
+
"workflows/null-byte.ts": {
|
|
209
|
+
"nullByteWorkflow": {
|
|
210
|
+
"workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
|
|
211
211
|
"graph": {
|
|
212
212
|
"nodes": [
|
|
213
213
|
{
|
|
214
214
|
"id": "start",
|
|
215
215
|
"type": "workflowStart",
|
|
216
216
|
"data": {
|
|
217
|
-
"label": "Start:
|
|
217
|
+
"label": "Start: nullByteWorkflow",
|
|
218
218
|
"nodeKind": "workflow_start"
|
|
219
219
|
}
|
|
220
220
|
},
|
|
@@ -222,18 +222,9 @@
|
|
|
222
222
|
"id": "node_0",
|
|
223
223
|
"type": "step",
|
|
224
224
|
"data": {
|
|
225
|
-
"label": "
|
|
226
|
-
"nodeKind": "step",
|
|
227
|
-
"stepId": "step//./workflows/noop//noop"
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"id": "node_1",
|
|
232
|
-
"type": "step",
|
|
233
|
-
"data": {
|
|
234
|
-
"label": "noop",
|
|
225
|
+
"label": "nullByteStep",
|
|
235
226
|
"nodeKind": "step",
|
|
236
|
-
"stepId": "step//./workflows/
|
|
227
|
+
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
237
228
|
}
|
|
238
229
|
},
|
|
239
230
|
{
|
|
@@ -253,14 +244,8 @@
|
|
|
253
244
|
"type": "default"
|
|
254
245
|
},
|
|
255
246
|
{
|
|
256
|
-
"id": "
|
|
247
|
+
"id": "e_node_0_end",
|
|
257
248
|
"source": "node_0",
|
|
258
|
-
"target": "node_1",
|
|
259
|
-
"type": "default"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"id": "e_node_1_end",
|
|
263
|
-
"source": "node_1",
|
|
264
249
|
"target": "end",
|
|
265
250
|
"type": "default"
|
|
266
251
|
}
|
|
@@ -268,16 +253,16 @@
|
|
|
268
253
|
}
|
|
269
254
|
}
|
|
270
255
|
},
|
|
271
|
-
"workflows/
|
|
272
|
-
"
|
|
273
|
-
"workflowId": "workflow//./workflows/
|
|
256
|
+
"workflows/hooks.ts": {
|
|
257
|
+
"collectWithHook": {
|
|
258
|
+
"workflowId": "workflow//./workflows/hooks//collectWithHook",
|
|
274
259
|
"graph": {
|
|
275
260
|
"nodes": [
|
|
276
261
|
{
|
|
277
262
|
"id": "start",
|
|
278
263
|
"type": "workflowStart",
|
|
279
264
|
"data": {
|
|
280
|
-
"label": "Start:
|
|
265
|
+
"label": "Start: collectWithHook",
|
|
281
266
|
"nodeKind": "workflow_start"
|
|
282
267
|
}
|
|
283
268
|
},
|
|
@@ -285,9 +270,22 @@
|
|
|
285
270
|
"id": "node_0",
|
|
286
271
|
"type": "step",
|
|
287
272
|
"data": {
|
|
288
|
-
"label": "
|
|
273
|
+
"label": "writeEvent",
|
|
289
274
|
"nodeKind": "step",
|
|
290
|
-
"stepId": "step//./workflows/
|
|
275
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"id": "node_1",
|
|
280
|
+
"type": "step",
|
|
281
|
+
"data": {
|
|
282
|
+
"label": "writeEvent",
|
|
283
|
+
"nodeKind": "step",
|
|
284
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
285
|
+
},
|
|
286
|
+
"metadata": {
|
|
287
|
+
"loopId": "loop_0",
|
|
288
|
+
"loopIsAwait": true
|
|
291
289
|
}
|
|
292
290
|
},
|
|
293
291
|
{
|
|
@@ -307,8 +305,20 @@
|
|
|
307
305
|
"type": "default"
|
|
308
306
|
},
|
|
309
307
|
{
|
|
310
|
-
"id": "
|
|
308
|
+
"id": "e_node_1_back_node_1",
|
|
309
|
+
"source": "node_1",
|
|
310
|
+
"target": "node_1",
|
|
311
|
+
"type": "loop"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"id": "e_node_0_node_1",
|
|
311
315
|
"source": "node_0",
|
|
316
|
+
"target": "node_1",
|
|
317
|
+
"type": "default"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"id": "e_node_1_end",
|
|
321
|
+
"source": "node_1",
|
|
312
322
|
"target": "end",
|
|
313
323
|
"type": "default"
|
|
314
324
|
}
|
|
@@ -316,16 +326,16 @@
|
|
|
316
326
|
}
|
|
317
327
|
}
|
|
318
328
|
},
|
|
319
|
-
"workflows/
|
|
320
|
-
"
|
|
321
|
-
"workflowId": "workflow//./workflows/
|
|
329
|
+
"workflows/noop.ts": {
|
|
330
|
+
"brokenWf": {
|
|
331
|
+
"workflowId": "workflow//./workflows/noop//brokenWf",
|
|
322
332
|
"graph": {
|
|
323
333
|
"nodes": [
|
|
324
334
|
{
|
|
325
335
|
"id": "start",
|
|
326
336
|
"type": "workflowStart",
|
|
327
337
|
"data": {
|
|
328
|
-
"label": "Start:
|
|
338
|
+
"label": "Start: brokenWf",
|
|
329
339
|
"nodeKind": "workflow_start"
|
|
330
340
|
}
|
|
331
341
|
},
|
|
@@ -333,22 +343,18 @@
|
|
|
333
343
|
"id": "node_0",
|
|
334
344
|
"type": "step",
|
|
335
345
|
"data": {
|
|
336
|
-
"label": "
|
|
346
|
+
"label": "noop",
|
|
337
347
|
"nodeKind": "step",
|
|
338
|
-
"stepId": "step//./workflows/
|
|
348
|
+
"stepId": "step//./workflows/noop//noop"
|
|
339
349
|
}
|
|
340
350
|
},
|
|
341
351
|
{
|
|
342
352
|
"id": "node_1",
|
|
343
353
|
"type": "step",
|
|
344
354
|
"data": {
|
|
345
|
-
"label": "
|
|
355
|
+
"label": "noop",
|
|
346
356
|
"nodeKind": "step",
|
|
347
|
-
"stepId": "step//./workflows/
|
|
348
|
-
},
|
|
349
|
-
"metadata": {
|
|
350
|
-
"loopId": "loop_0",
|
|
351
|
-
"loopIsAwait": true
|
|
357
|
+
"stepId": "step//./workflows/noop//noop"
|
|
352
358
|
}
|
|
353
359
|
},
|
|
354
360
|
{
|
|
@@ -367,12 +373,6 @@
|
|
|
367
373
|
"target": "node_0",
|
|
368
374
|
"type": "default"
|
|
369
375
|
},
|
|
370
|
-
{
|
|
371
|
-
"id": "e_node_1_back_node_1",
|
|
372
|
-
"source": "node_1",
|
|
373
|
-
"target": "node_1",
|
|
374
|
-
"type": "loop"
|
|
375
|
-
},
|
|
376
376
|
{
|
|
377
377
|
"id": "e_node_0_node_1",
|
|
378
378
|
"source": "node_0",
|