@workflow/world-testing 4.1.25 → 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");
|
|
@@ -55344,13 +55344,17 @@ function createEventsDispatcher(agentOverrides) {
|
|
|
55344
55344
|
...h2 ? getEventsAgentOptions() : getEventsAgentOptionsNoH2(),
|
|
55345
55345
|
...agentOverrides
|
|
55346
55346
|
}), getEventsRetryAgentOptions());
|
|
55347
|
-
if (!h2) {
|
|
55347
|
+
if (!h2 || !supportsCompose(agent)) {
|
|
55348
55348
|
return agent;
|
|
55349
55349
|
}
|
|
55350
55350
|
const streamedBodyAgent = new import_undici2.RetryAgent(new import_undici2.Agent({ ...getEventsAgentOptionsNoH2(), ...agentOverrides }), getEventsRetryAgentOptions());
|
|
55351
55351
|
return withBoundLifecycle(agent, agent.compose(createH2MultiplexInterceptor(streamedBodyAgent)), streamedBodyAgent);
|
|
55352
55352
|
}
|
|
55353
55353
|
__name(createEventsDispatcher, "createEventsDispatcher");
|
|
55354
|
+
function supportsCompose(dispatcher) {
|
|
55355
|
+
return typeof dispatcher.compose === "function";
|
|
55356
|
+
}
|
|
55357
|
+
__name(supportsCompose, "supportsCompose");
|
|
55354
55358
|
function withBoundLifecycle(agent, composed, companion) {
|
|
55355
55359
|
return new Proxy(composed, {
|
|
55356
55360
|
get: /* @__PURE__ */ __name((target2, key) => {
|
|
@@ -55373,7 +55377,8 @@ function createStreamDispatcher(retryOptions, agentOverrides) {
|
|
|
55373
55377
|
}
|
|
55374
55378
|
__name(createStreamDispatcher, "createStreamDispatcher");
|
|
55375
55379
|
function createQueueDispatcher() {
|
|
55376
|
-
|
|
55380
|
+
const agent = new import_undici2.Agent(getQueueAgentOptions());
|
|
55381
|
+
return new import_undici2.RetryAgent(supportsCompose(agent) ? agent.compose(deadlineInterceptor(getQueueRequestTimeoutMs())) : agent, getRetryAgentOptions());
|
|
55377
55382
|
}
|
|
55378
55383
|
__name(createQueueDispatcher, "createQueueDispatcher");
|
|
55379
55384
|
function getDefaultQueueDispatcher() {
|
|
@@ -62893,7 +62898,7 @@ var import_oidc3 = __toESM(require_dist(), 1);
|
|
|
62893
62898
|
init_dist();
|
|
62894
62899
|
|
|
62895
62900
|
// ../world-vercel/dist/version.js
|
|
62896
|
-
var version3 = "4.7.
|
|
62901
|
+
var version3 = "4.7.6";
|
|
62897
62902
|
|
|
62898
62903
|
// ../world-vercel/dist/utils.js
|
|
62899
62904
|
var WORKFLOW_SERVER_URL_OVERRIDE = "";
|
|
@@ -63254,10 +63259,21 @@ var MAX_DELAY_SECONDS = Number(
|
|
|
63254
63259
|
var HANDLER_ERROR_RETRY_AFTER_SECONDS = 1;
|
|
63255
63260
|
var HANDLER_ERROR_MAX_RETRY_AFTER_SECONDS = 900;
|
|
63256
63261
|
var HANDLER_ERROR_RETRY_JITTER_RATIO = 0.25;
|
|
63257
|
-
function
|
|
63262
|
+
function getErrorRetryAfterSeconds(error48) {
|
|
63263
|
+
if (typeof error48 !== "object" || error48 === null)
|
|
63264
|
+
return void 0;
|
|
63265
|
+
const retryAfter = error48.retryAfter;
|
|
63266
|
+
if (typeof retryAfter !== "number" || !Number.isFinite(retryAfter) || retryAfter <= 0) {
|
|
63267
|
+
return void 0;
|
|
63268
|
+
}
|
|
63269
|
+
return Math.min(Math.ceil(retryAfter), HANDLER_ERROR_MAX_RETRY_AFTER_SECONDS);
|
|
63270
|
+
}
|
|
63271
|
+
__name(getErrorRetryAfterSeconds, "getErrorRetryAfterSeconds");
|
|
63272
|
+
function getHandlerErrorRetryAfterSeconds(error48, deliveryCount) {
|
|
63258
63273
|
const backoffSeconds = Math.min(Math.max(HANDLER_ERROR_RETRY_AFTER_SECONDS, 2 ** (deliveryCount - 1)), HANDLER_ERROR_MAX_RETRY_AFTER_SECONDS);
|
|
63259
63274
|
const jitterSeconds = Math.floor(Math.random() * (Math.ceil(backoffSeconds * HANDLER_ERROR_RETRY_JITTER_RATIO) + 1));
|
|
63260
|
-
|
|
63275
|
+
const jitteredBackoffSeconds = Math.max(HANDLER_ERROR_RETRY_AFTER_SECONDS, backoffSeconds - jitterSeconds);
|
|
63276
|
+
return Math.max(jitteredBackoffSeconds, getErrorRetryAfterSeconds(error48) ?? HANDLER_ERROR_RETRY_AFTER_SECONDS);
|
|
63261
63277
|
}
|
|
63262
63278
|
__name(getHandlerErrorRetryAfterSeconds, "getHandlerErrorRetryAfterSeconds");
|
|
63263
63279
|
function getHeadersFromPayload(payload) {
|
|
@@ -63361,7 +63377,7 @@ function createQueue2(config3) {
|
|
|
63361
63377
|
// redrive in lockstep. Workflow handlers are event-sourced and must
|
|
63362
63378
|
// remain idempotent because queue retries can happen close together.
|
|
63363
63379
|
retry: /* @__PURE__ */ __name((error48, { messageId, deliveryCount }) => {
|
|
63364
|
-
const afterSeconds = getHandlerErrorRetryAfterSeconds(deliveryCount);
|
|
63380
|
+
const afterSeconds = getHandlerErrorRetryAfterSeconds(error48, deliveryCount);
|
|
63365
63381
|
console.error(`[workflow] Queue handler failed for message "${messageId}" on delivery attempt ${deliveryCount}; retrying in ${afterSeconds}s:`, error48);
|
|
63366
63382
|
return { afterSeconds };
|
|
63367
63383
|
}, "retry")
|
|
@@ -66093,12 +66109,25 @@ async function awaitEarlierDeliveries(ctx, eventIndex, kind) {
|
|
|
66093
66109
|
}
|
|
66094
66110
|
}
|
|
66095
66111
|
__name(awaitEarlierDeliveries, "awaitEarlierDeliveries");
|
|
66096
|
-
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");
|
|
66097
66122
|
const barriers = ctx.pendingDeliveryBarriers;
|
|
66098
66123
|
if (!barriers || eventIndex === void 0) {
|
|
66099
|
-
return {
|
|
66100
|
-
|
|
66101
|
-
|
|
66124
|
+
return {
|
|
66125
|
+
markDelivered: /* @__PURE__ */ __name(() => {
|
|
66126
|
+
deliver();
|
|
66127
|
+
}, "markDelivered"),
|
|
66128
|
+
arm: /* @__PURE__ */ __name(() => {
|
|
66129
|
+
}, "arm")
|
|
66130
|
+
};
|
|
66102
66131
|
}
|
|
66103
66132
|
let done = false;
|
|
66104
66133
|
const { promise: promise2, resolve: resolve3 } = withResolvers();
|
|
@@ -66121,7 +66150,12 @@ function registerDeliveryBarrier(ctx, eventIndex, kind, options = {}) {
|
|
|
66121
66150
|
barriers.set(eventIndex, entry);
|
|
66122
66151
|
ensureBarrierSafetyNet(ctx);
|
|
66123
66152
|
return {
|
|
66124
|
-
markDelivered:
|
|
66153
|
+
markDelivered: /* @__PURE__ */ __name(() => {
|
|
66154
|
+
if (!deliver()) {
|
|
66155
|
+
return;
|
|
66156
|
+
}
|
|
66157
|
+
finish();
|
|
66158
|
+
}, "markDelivered"),
|
|
66125
66159
|
arm: /* @__PURE__ */ __name(() => {
|
|
66126
66160
|
entry.armed = true;
|
|
66127
66161
|
}, "arm")
|
|
@@ -68732,7 +68766,9 @@ function createUseStep(ctx) {
|
|
|
68732
68766
|
if (event.eventType === "step_failed") {
|
|
68733
68767
|
ctx.invocationsQueue.delete(event.correlationId);
|
|
68734
68768
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
68735
|
-
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step"
|
|
68769
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step", {
|
|
68770
|
+
deliveredAt: +event.createdAt
|
|
68771
|
+
});
|
|
68736
68772
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "step");
|
|
68737
68773
|
ctx.promiseQueue = ctx.promiseQueue.then(() => {
|
|
68738
68774
|
const errorData = event.eventData.error;
|
|
@@ -68755,7 +68791,9 @@ function createUseStep(ctx) {
|
|
|
68755
68791
|
const completedEventId = event.eventId;
|
|
68756
68792
|
const serializedResult = event.eventData.result;
|
|
68757
68793
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
68758
|
-
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step"
|
|
68794
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step", {
|
|
68795
|
+
deliveredAt: +event.createdAt
|
|
68796
|
+
});
|
|
68759
68797
|
let outcome;
|
|
68760
68798
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "step");
|
|
68761
68799
|
ctx.pendingDeliveries++;
|
|
@@ -69393,6 +69431,26 @@ function createCreateHook(ctx) {
|
|
|
69393
69431
|
let hasConflict = false;
|
|
69394
69432
|
let conflictErrorRef = null;
|
|
69395
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");
|
|
69396
69454
|
webhookLogger.debug("Hook consumer setup", { correlationId, token });
|
|
69397
69455
|
ctx.eventsConsumer.subscribe((event) => {
|
|
69398
69456
|
if (!event) {
|
|
@@ -69422,7 +69480,7 @@ function createCreateHook(ctx) {
|
|
|
69422
69480
|
hasCreated = true;
|
|
69423
69481
|
const pendingGetConflictPromises = getConflictPromises.slice();
|
|
69424
69482
|
getConflictPromises.length = 0;
|
|
69425
|
-
|
|
69483
|
+
deliverRegistration(+event.createdAt, () => {
|
|
69426
69484
|
for (const resolver2 of pendingGetConflictPromises) {
|
|
69427
69485
|
resolver2.resolve(null);
|
|
69428
69486
|
}
|
|
@@ -69440,7 +69498,7 @@ function createCreateHook(ctx) {
|
|
|
69440
69498
|
promises.length = 0;
|
|
69441
69499
|
const pendingGetConflictPromises = getConflictPromises.slice();
|
|
69442
69500
|
getConflictPromises.length = 0;
|
|
69443
|
-
|
|
69501
|
+
deliverRegistration(+event.createdAt, () => {
|
|
69444
69502
|
for (const resolver2 of pendingPromises) {
|
|
69445
69503
|
resolver2.reject(conflictError);
|
|
69446
69504
|
}
|
|
@@ -69458,7 +69516,8 @@ function createCreateHook(ctx) {
|
|
|
69458
69516
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
69459
69517
|
const hasWaitingConsumer = promises.length > 0;
|
|
69460
69518
|
const barrier = registerDeliveryBarrier(ctx, eventIndex, "hook", {
|
|
69461
|
-
armed: hasWaitingConsumer
|
|
69519
|
+
armed: hasWaitingConsumer,
|
|
69520
|
+
deliveredAt: +event.createdAt
|
|
69462
69521
|
});
|
|
69463
69522
|
if (hasWaitingConsumer) {
|
|
69464
69523
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "hook");
|
|
@@ -69528,7 +69587,7 @@ function createCreateHook(ctx) {
|
|
|
69528
69587
|
function createHookPromise() {
|
|
69529
69588
|
const resolvers = withResolvers();
|
|
69530
69589
|
if (hasConflict && conflictErrorRef) {
|
|
69531
|
-
|
|
69590
|
+
afterRegistration(() => {
|
|
69532
69591
|
resolvers.reject(conflictErrorRef);
|
|
69533
69592
|
});
|
|
69534
69593
|
return resolvers.promise;
|
|
@@ -69551,13 +69610,13 @@ function createCreateHook(ctx) {
|
|
|
69551
69610
|
function createGetConflictPromise() {
|
|
69552
69611
|
const resolvers = withResolvers();
|
|
69553
69612
|
if (hasCreated) {
|
|
69554
|
-
|
|
69613
|
+
afterRegistration(() => {
|
|
69555
69614
|
resolvers.resolve(null);
|
|
69556
69615
|
});
|
|
69557
69616
|
return resolvers.promise;
|
|
69558
69617
|
}
|
|
69559
69618
|
if (hasConflict) {
|
|
69560
|
-
|
|
69619
|
+
afterRegistration(() => {
|
|
69561
69620
|
if (conflictRunRef) {
|
|
69562
69621
|
resolvers.resolve(conflictRunRef);
|
|
69563
69622
|
} else {
|
|
@@ -69675,7 +69734,9 @@ function createSleep(ctx) {
|
|
|
69675
69734
|
}
|
|
69676
69735
|
ctx.invocationsQueue.delete(correlationId);
|
|
69677
69736
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
69678
|
-
const barrier = registerDeliveryBarrier(ctx, eventIndex, "wait"
|
|
69737
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "wait", {
|
|
69738
|
+
deliveredAt: +event.createdAt
|
|
69739
|
+
});
|
|
69679
69740
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "wait");
|
|
69680
69741
|
const queueAtCompletion = ctx.promiseQueue;
|
|
69681
69742
|
void queueAtCompletion.then(() => earlierDelivered).then(() => {
|
|
@@ -69737,10 +69798,14 @@ async function runWorkflow(workflowCode2, workflowRun, events, encryptionKey, st
|
|
|
69737
69798
|
const generateNanoid = customRandom(urlAlphabet, 21, (size) => new Uint8Array(size).map(() => 256 * vmGlobalThis.Math.random()));
|
|
69738
69799
|
const promiseQueueHolder = { current: Promise.resolve() };
|
|
69739
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");
|
|
69740
69808
|
const eventsConsumer = new EventsConsumer(events, {
|
|
69741
|
-
onConsumedEvent: /* @__PURE__ */ __name((event) => {
|
|
69742
|
-
updateTimestamp(+event.createdAt);
|
|
69743
|
-
}, "onConsumedEvent"),
|
|
69744
69809
|
onUnconsumedEvent: /* @__PURE__ */ __name((event) => {
|
|
69745
69810
|
workflowDiscontinuation.reject(new ReplayDivergenceError(`Replay could not consume event: eventType=${event.eventType}, correlationId=${event.correlationId}, eventId=${event.eventId}.`, { eventId: event.eventId }));
|
|
69746
69811
|
}, "onUnconsumedEvent"),
|
|
@@ -69766,6 +69831,7 @@ async function runWorkflow(workflowCode2, workflowRun, events, encryptionKey, st
|
|
|
69766
69831
|
},
|
|
69767
69832
|
pendingDeliveries: 0,
|
|
69768
69833
|
pendingDeliveryBarriers: /* @__PURE__ */ new Map(),
|
|
69834
|
+
advanceClock,
|
|
69769
69835
|
stepHydrationCache
|
|
69770
69836
|
};
|
|
69771
69837
|
deliveryIdleHolder.current = () => isDeliveryIdle(workflowContext);
|
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
"stepId": "step//./workflows/addition//add"
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
|
+
"workflows/event-limit.ts": {
|
|
10
|
+
"tick": {
|
|
11
|
+
"stepId": "step//./workflows/event-limit//tick"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
9
14
|
"workflows/retriable-and-fatal.ts": {
|
|
10
15
|
"stepThatFails": {
|
|
11
16
|
"stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
|
|
@@ -14,11 +19,6 @@
|
|
|
14
19
|
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
15
20
|
}
|
|
16
21
|
},
|
|
17
|
-
"workflows/noop.ts": {
|
|
18
|
-
"noop": {
|
|
19
|
-
"stepId": "step//./workflows/noop//noop"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
22
|
"workflows/null-byte.ts": {
|
|
23
23
|
"nullByteStep": {
|
|
24
24
|
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"workflow/dist/stdlib.js": {
|
|
28
28
|
"fetch": {
|
|
29
|
-
"stepId": "step//workflow@4.8.
|
|
29
|
+
"stepId": "step//workflow@4.8.12//fetch"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"workflows/hooks.ts": {
|
|
@@ -34,11 +34,6 @@
|
|
|
34
34
|
"stepId": "step//./workflows/hooks//writeEvent"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"workflows/event-limit.ts": {
|
|
38
|
-
"tick": {
|
|
39
|
-
"stepId": "step//./workflows/event-limit//tick"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
37
|
"workflow/dist/internal/builtins.js": {
|
|
43
38
|
"__builtin_response_array_buffer": {
|
|
44
39
|
"stepId": "__builtin_response_array_buffer"
|
|
@@ -49,6 +44,11 @@
|
|
|
49
44
|
"__builtin_response_text": {
|
|
50
45
|
"stepId": "__builtin_response_text"
|
|
51
46
|
}
|
|
47
|
+
},
|
|
48
|
+
"workflows/noop.ts": {
|
|
49
|
+
"noop": {
|
|
50
|
+
"stepId": "step//./workflows/noop//noop"
|
|
51
|
+
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"workflows": {
|
|
@@ -100,16 +100,16 @@
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
-
"workflows/
|
|
104
|
-
"
|
|
105
|
-
"workflowId": "workflow//./workflows/
|
|
103
|
+
"workflows/event-limit.ts": {
|
|
104
|
+
"runawayWorkflow": {
|
|
105
|
+
"workflowId": "workflow//./workflows/event-limit//runawayWorkflow",
|
|
106
106
|
"graph": {
|
|
107
107
|
"nodes": [
|
|
108
108
|
{
|
|
109
109
|
"id": "start",
|
|
110
110
|
"type": "workflowStart",
|
|
111
111
|
"data": {
|
|
112
|
-
"label": "Start:
|
|
112
|
+
"label": "Start: runawayWorkflow",
|
|
113
113
|
"nodeKind": "workflow_start"
|
|
114
114
|
}
|
|
115
115
|
},
|
|
@@ -117,9 +117,12 @@
|
|
|
117
117
|
"id": "node_0",
|
|
118
118
|
"type": "step",
|
|
119
119
|
"data": {
|
|
120
|
-
"label": "
|
|
120
|
+
"label": "tick",
|
|
121
121
|
"nodeKind": "step",
|
|
122
|
-
"stepId": "step//./workflows/
|
|
122
|
+
"stepId": "step//./workflows/event-limit//tick"
|
|
123
|
+
},
|
|
124
|
+
"metadata": {
|
|
125
|
+
"loopId": "loop_0"
|
|
123
126
|
}
|
|
124
127
|
},
|
|
125
128
|
{
|
|
@@ -132,6 +135,12 @@
|
|
|
132
135
|
}
|
|
133
136
|
],
|
|
134
137
|
"edges": [
|
|
138
|
+
{
|
|
139
|
+
"id": "e_node_0_back_node_0",
|
|
140
|
+
"source": "node_0",
|
|
141
|
+
"target": "node_0",
|
|
142
|
+
"type": "loop"
|
|
143
|
+
},
|
|
135
144
|
{
|
|
136
145
|
"id": "e_start_node_0",
|
|
137
146
|
"source": "start",
|
|
@@ -148,16 +157,16 @@
|
|
|
148
157
|
}
|
|
149
158
|
}
|
|
150
159
|
},
|
|
151
|
-
"workflows/
|
|
152
|
-
"
|
|
153
|
-
"workflowId": "workflow//./workflows/
|
|
160
|
+
"workflows/retriable-and-fatal.ts": {
|
|
161
|
+
"retryableAndFatalErrorWorkflow": {
|
|
162
|
+
"workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
|
|
154
163
|
"graph": {
|
|
155
164
|
"nodes": [
|
|
156
165
|
{
|
|
157
166
|
"id": "start",
|
|
158
167
|
"type": "workflowStart",
|
|
159
168
|
"data": {
|
|
160
|
-
"label": "Start:
|
|
169
|
+
"label": "Start: retryableAndFatalErrorWorkflow",
|
|
161
170
|
"nodeKind": "workflow_start"
|
|
162
171
|
}
|
|
163
172
|
},
|
|
@@ -165,18 +174,9 @@
|
|
|
165
174
|
"id": "node_0",
|
|
166
175
|
"type": "step",
|
|
167
176
|
"data": {
|
|
168
|
-
"label": "
|
|
169
|
-
"nodeKind": "step",
|
|
170
|
-
"stepId": "step//./workflows/noop//noop"
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"id": "node_1",
|
|
175
|
-
"type": "step",
|
|
176
|
-
"data": {
|
|
177
|
-
"label": "noop",
|
|
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
|
{
|
|
@@ -196,14 +196,8 @@
|
|
|
196
196
|
"type": "default"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
|
-
"id": "
|
|
199
|
+
"id": "e_node_0_end",
|
|
200
200
|
"source": "node_0",
|
|
201
|
-
"target": "node_1",
|
|
202
|
-
"type": "default"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"id": "e_node_1_end",
|
|
206
|
-
"source": "node_1",
|
|
207
201
|
"target": "end",
|
|
208
202
|
"type": "default"
|
|
209
203
|
}
|
|
@@ -332,16 +326,16 @@
|
|
|
332
326
|
}
|
|
333
327
|
}
|
|
334
328
|
},
|
|
335
|
-
"workflows/
|
|
336
|
-
"
|
|
337
|
-
"workflowId": "workflow//./workflows/
|
|
329
|
+
"workflows/noop.ts": {
|
|
330
|
+
"brokenWf": {
|
|
331
|
+
"workflowId": "workflow//./workflows/noop//brokenWf",
|
|
338
332
|
"graph": {
|
|
339
333
|
"nodes": [
|
|
340
334
|
{
|
|
341
335
|
"id": "start",
|
|
342
336
|
"type": "workflowStart",
|
|
343
337
|
"data": {
|
|
344
|
-
"label": "Start:
|
|
338
|
+
"label": "Start: brokenWf",
|
|
345
339
|
"nodeKind": "workflow_start"
|
|
346
340
|
}
|
|
347
341
|
},
|
|
@@ -349,12 +343,18 @@
|
|
|
349
343
|
"id": "node_0",
|
|
350
344
|
"type": "step",
|
|
351
345
|
"data": {
|
|
352
|
-
"label": "
|
|
346
|
+
"label": "noop",
|
|
353
347
|
"nodeKind": "step",
|
|
354
|
-
"stepId": "step//./workflows/
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
|
|
348
|
+
"stepId": "step//./workflows/noop//noop"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "node_1",
|
|
353
|
+
"type": "step",
|
|
354
|
+
"data": {
|
|
355
|
+
"label": "noop",
|
|
356
|
+
"nodeKind": "step",
|
|
357
|
+
"stepId": "step//./workflows/noop//noop"
|
|
358
358
|
}
|
|
359
359
|
},
|
|
360
360
|
{
|
|
@@ -367,12 +367,6 @@
|
|
|
367
367
|
}
|
|
368
368
|
],
|
|
369
369
|
"edges": [
|
|
370
|
-
{
|
|
371
|
-
"id": "e_node_0_back_node_0",
|
|
372
|
-
"source": "node_0",
|
|
373
|
-
"target": "node_0",
|
|
374
|
-
"type": "loop"
|
|
375
|
-
},
|
|
376
370
|
{
|
|
377
371
|
"id": "e_start_node_0",
|
|
378
372
|
"source": "start",
|
|
@@ -380,8 +374,14 @@
|
|
|
380
374
|
"type": "default"
|
|
381
375
|
},
|
|
382
376
|
{
|
|
383
|
-
"id": "
|
|
377
|
+
"id": "e_node_0_node_1",
|
|
384
378
|
"source": "node_0",
|
|
379
|
+
"target": "node_1",
|
|
380
|
+
"type": "default"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"id": "e_node_1_end",
|
|
384
|
+
"source": "node_1",
|
|
385
385
|
"target": "end",
|
|
386
386
|
"type": "default"
|
|
387
387
|
}
|