@dbos-inc/dbos-sdk 0.7.25-preview → 0.7.35
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/cloud-cli/cli.js +19 -7
- package/dist/src/cloud-cli/cli.js.map +1 -1
- package/dist/src/cloud-cli/userdb.d.ts +2 -0
- package/dist/src/cloud-cli/userdb.d.ts.map +1 -1
- package/dist/src/cloud-cli/userdb.js +78 -5
- package/dist/src/cloud-cli/userdb.js.map +1 -1
- package/dist/src/communicator.d.ts +2 -1
- package/dist/src/communicator.d.ts.map +1 -1
- package/dist/src/communicator.js.map +1 -1
- package/dist/src/context.d.ts +2 -2
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/context.js +7 -7
- package/dist/src/context.js.map +1 -1
- package/dist/src/dbos-executor.d.ts +1 -0
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +40 -24
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos-runtime/config.d.ts +3 -0
- package/dist/src/dbos-runtime/config.d.ts.map +1 -1
- package/dist/src/dbos-runtime/config.js.map +1 -1
- package/dist/src/dbos-runtime/runtime.d.ts +1 -1
- package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
- package/dist/src/dbos-runtime/runtime.js +9 -9
- package/dist/src/dbos-runtime/runtime.js.map +1 -1
- package/dist/src/debugger/debug_workflow.d.ts +8 -8
- package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
- package/dist/src/debugger/debug_workflow.js +106 -35
- package/dist/src/debugger/debug_workflow.js.map +1 -1
- package/dist/src/httpServer/handler.d.ts +1 -1
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +14 -14
- package/dist/src/httpServer/handler.js.map +1 -1
- package/dist/src/httpServer/server.d.ts +3 -3
- package/dist/src/httpServer/server.d.ts.map +1 -1
- package/dist/src/httpServer/server.js +17 -17
- package/dist/src/httpServer/server.js.map +1 -1
- package/dist/src/system_database.d.ts +2 -0
- package/dist/src/system_database.d.ts.map +1 -1
- package/dist/src/system_database.js +9 -2
- package/dist/src/system_database.js.map +1 -1
- package/dist/src/testing/testing_runtime.d.ts.map +1 -1
- package/dist/src/testing/testing_runtime.js +7 -1
- package/dist/src/testing/testing_runtime.js.map +1 -1
- package/dist/src/workflow.d.ts +14 -1
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +90 -53
- package/dist/src/workflow.js.map +1 -1
- package/examples/hello/README.md +1 -1
- package/examples/hello/dbos-config.yaml +3 -0
- package/package.json +1 -1
@@ -21,7 +21,7 @@ class DBOSHttpServer {
|
|
21
21
|
/**
|
22
22
|
* Create a Koa app.
|
23
23
|
* @param dbosExec User pass in an DBOS workflow executor instance.
|
24
|
-
* TODO: maybe call
|
24
|
+
* TODO: maybe call dbosExec.init() somewhere in this class?
|
25
25
|
*/
|
26
26
|
constructor(dbosExec, config = {}) {
|
27
27
|
this.dbosExec = dbosExec;
|
@@ -57,44 +57,44 @@ class DBOSHttpServer {
|
|
57
57
|
* Register workflow recovery endpoint.
|
58
58
|
* Receives a list of executor IDs and returns a list of workflowUUIDs.
|
59
59
|
*/
|
60
|
-
static registerRecoveryEndpoint(
|
60
|
+
static registerRecoveryEndpoint(dbosExec, router) {
|
61
61
|
// Handler function that parses request for recovery.
|
62
62
|
const recoveryHandler = async (koaCtxt, koaNext) => {
|
63
63
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
64
64
|
const executorIDs = koaCtxt.request.body;
|
65
|
-
|
66
|
-
const recoverHandles = await
|
65
|
+
dbosExec.logger.info("Recovering workflows for executors: " + executorIDs.toString());
|
66
|
+
const recoverHandles = await dbosExec.recoverPendingWorkflows(executorIDs);
|
67
67
|
// Return a list of workflowUUIDs being recovered.
|
68
68
|
koaCtxt.body = await Promise.allSettled(recoverHandles.map((i) => i.getWorkflowUUID())).then((results) => results.filter((i) => i.status === "fulfilled").map((i) => i.value));
|
69
69
|
await koaNext();
|
70
70
|
};
|
71
71
|
router.post(exports.WorkflowRecoveryUrl, recoveryHandler);
|
72
|
-
|
72
|
+
dbosExec.logger.debug(`DBOS Server Registered Recovery POST ${exports.WorkflowRecoveryUrl}`);
|
73
73
|
}
|
74
74
|
/**
|
75
75
|
* Register decorated functions as HTTP endpoints.
|
76
76
|
*/
|
77
|
-
static registerDecoratedEndpoints(
|
77
|
+
static registerDecoratedEndpoints(dbosExec, router) {
|
78
78
|
// Register user declared endpoints, wrap around the endpoint with request parsing and response.
|
79
|
-
|
79
|
+
dbosExec.registeredOperations.forEach((registeredOperation) => {
|
80
80
|
const ro = registeredOperation;
|
81
81
|
if (ro.apiURL) {
|
82
82
|
// Ignore URL with "/dbos-workflow-recovery" prefix.
|
83
83
|
if (ro.apiURL.startsWith(exports.WorkflowRecoveryUrl)) {
|
84
|
-
|
84
|
+
dbosExec.logger.error(`Invalid URL: ${ro.apiURL} -- should not start with ${exports.WorkflowRecoveryUrl}!`);
|
85
85
|
return;
|
86
86
|
}
|
87
87
|
// Check if we need to apply any Koa middleware.
|
88
88
|
const defaults = ro.defaults;
|
89
89
|
if (defaults?.koaMiddlewares) {
|
90
90
|
defaults.koaMiddlewares.forEach((koaMiddleware) => {
|
91
|
-
|
91
|
+
dbosExec.logger.debug(`DBOS Server applying middleware ${koaMiddleware.name} to ${ro.apiURL}`);
|
92
92
|
router.use(ro.apiURL, koaMiddleware);
|
93
93
|
});
|
94
94
|
}
|
95
95
|
// Wrapper function that parses request and send response.
|
96
96
|
const wrappedHandler = async (koaCtxt, koaNext) => {
|
97
|
-
const oc = new handler_1.HandlerContextImpl(
|
97
|
+
const oc = new handler_1.HandlerContextImpl(dbosExec, koaCtxt);
|
98
98
|
try {
|
99
99
|
// Check for auth first
|
100
100
|
if (defaults?.authMiddleware) {
|
@@ -108,7 +108,7 @@ class DBOSHttpServer {
|
|
108
108
|
return oc.getConfig(key, def);
|
109
109
|
},
|
110
110
|
query: (query, ...args) => {
|
111
|
-
return
|
111
|
+
return dbosExec.userDatabase.queryFunction(query, ...args);
|
112
112
|
},
|
113
113
|
});
|
114
114
|
if (res) {
|
@@ -158,13 +158,13 @@ class DBOSHttpServer {
|
|
158
158
|
// - Otherwise, we return 500.
|
159
159
|
const wfParams = { parentCtx: oc, workflowUUID: headerWorkflowUUID };
|
160
160
|
if (ro.txnConfig) {
|
161
|
-
koaCtxt.body = await
|
161
|
+
koaCtxt.body = await dbosExec.transaction(ro.registeredFunction, wfParams, ...args);
|
162
162
|
}
|
163
163
|
else if (ro.workflowConfig) {
|
164
|
-
koaCtxt.body = await (await
|
164
|
+
koaCtxt.body = await (await dbosExec.workflow(ro.registeredFunction, wfParams, ...args)).getResult();
|
165
165
|
}
|
166
166
|
else if (ro.commConfig) {
|
167
|
-
koaCtxt.body = await
|
167
|
+
koaCtxt.body = await dbosExec.external(ro.registeredFunction, wfParams, ...args);
|
168
168
|
}
|
169
169
|
else {
|
170
170
|
// Directly invoke the handler code.
|
@@ -210,7 +210,7 @@ class DBOSHttpServer {
|
|
210
210
|
carrier.context.set(key, value);
|
211
211
|
},
|
212
212
|
});
|
213
|
-
|
213
|
+
dbosExec.tracer.endSpan(oc.span);
|
214
214
|
// Add requestID to response headers.
|
215
215
|
koaCtxt.set(handler_1.RequestIDHeader, oc.request.requestID);
|
216
216
|
await koaNext();
|
@@ -219,11 +219,11 @@ class DBOSHttpServer {
|
|
219
219
|
// Actually register the endpoint.
|
220
220
|
if (ro.apiType === handler_1.APITypes.GET) {
|
221
221
|
router.get(ro.apiURL, wrappedHandler);
|
222
|
-
|
222
|
+
dbosExec.logger.debug(`DBOS Server Registered GET ${ro.apiURL}`);
|
223
223
|
}
|
224
224
|
else if (ro.apiType === handler_1.APITypes.POST) {
|
225
225
|
router.post(ro.apiURL, wrappedHandler);
|
226
|
-
|
226
|
+
dbosExec.logger.debug(`DBOS Server Registered POST ${ro.apiURL}`);
|
227
227
|
}
|
228
228
|
}
|
229
229
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/http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AAE;gCACpD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;4BAClC,CAAC;yBACF,CACF,CAAC;wBACF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;wBACjC,qCAAqC;wBACrC,OAAO,CAAC,GAAG,CAAC,yBAAe,EAAE,EAAE,CAAC,OAAO,CAAC,SAAmB,CAAC,CAAC;wBAC7D,MAAM,OAAO,EAAE,CAAC;qBACjB;gBACH,CAAC,CAAC;gBAEF,kCAAkC;gBAClC,IAAI,EAAE,CAAC,OAAO,KAAK,kBAAQ,CAAC,GAAG,EAAE;oBAC/B,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;oBACtC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;iBAClE;qBAAM,IAAI,EAAE,CAAC,OAAO,KAAK,kBAAQ,CAAC,IAAI,EAAE;oBACvC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;oBACvC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;iBACnE;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA9OD,wCA8OC"}
|
@@ -13,6 +13,7 @@ export interface SystemDatabase {
|
|
13
13
|
flushWorkflowStatusBuffer(): Promise<Array<string>>;
|
14
14
|
recordWorkflowError(workflowUUID: string, error: Error): Promise<void>;
|
15
15
|
getPendingWorkflows(executorID: string): Promise<Array<string>>;
|
16
|
+
setWorkflowInputs<T extends any[]>(workflowUUID: string, args: T): Promise<void>;
|
16
17
|
getWorkflowInputs<T extends any[]>(workflowUUID: string): Promise<T | null>;
|
17
18
|
checkOperationOutput<R>(workflowUUID: string, functionID: number): Promise<DBOSNull | R>;
|
18
19
|
recordOperationOutput<R>(workflowUUID: string, functionID: number, output: R): Promise<void>;
|
@@ -45,6 +46,7 @@ export declare class PostgresSystemDatabase implements SystemDatabase {
|
|
45
46
|
flushWorkflowStatusBuffer(): Promise<string[]>;
|
46
47
|
recordWorkflowError(workflowUUID: string, error: Error): Promise<void>;
|
47
48
|
getPendingWorkflows(executorID: string): Promise<Array<string>>;
|
49
|
+
setWorkflowInputs<T extends any[]>(workflowUUID: string, args: T): Promise<void>;
|
48
50
|
getWorkflowInputs<T extends any[]>(workflowUUID: string): Promise<T | null>;
|
49
51
|
checkOperationOutput<R>(workflowUUID: string, functionID: number): Promise<DBOSNull | R>;
|
50
52
|
recordOperationOutput<R>(workflowUUID: string, functionID: number, output: R): Promise<void>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"system_database.d.ts","sourceRoot":"","sources":["../../src/system_database.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAiB,IAAI,EAAE,UAAU,EAAgB,UAAU,EAAU,MAAM,IAAI,CAAC;AAEvF,OAAO,EAAgB,cAAc,EAAE,MAAM,YAAY,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB,mBAAmB,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;IACpE,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,W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M,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,cAAc,GAAE,MAAmD,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IA4DlL,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBtH,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAiD5J,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IA6BjH,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAkB5D;;;OAGG;IACG,sBAAsB;CAiB7B"}
|
@@ -31,10 +31,14 @@ class PostgresSystemDatabase {
|
|
31
31
|
const pgSystemClient = new pg_1.Client(this.pgPoolConfig);
|
32
32
|
await pgSystemClient.connect();
|
33
33
|
// Create the system database and load tables.
|
34
|
-
const dbExists = await pgSystemClient.query(`SELECT FROM pg_database WHERE datname = '${this.systemDatabaseName}'`);
|
35
|
-
if (dbExists.rows.
|
34
|
+
const dbExists = await pgSystemClient.query(`SELECT EXISTS (SELECT FROM pg_database WHERE datname = '${this.systemDatabaseName}')`);
|
35
|
+
if (!dbExists.rows[0].exists) {
|
36
36
|
// Create the DBOS system database.
|
37
37
|
await pgSystemClient.query(`CREATE DATABASE "${this.systemDatabaseName}"`);
|
38
|
+
}
|
39
|
+
// Check if the system schema exist.
|
40
|
+
const schemaExists = await this.pool.query(`SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'workflow_status')`);
|
41
|
+
if (!schemaExists.rows[0].exists) {
|
38
42
|
// Load the DBOS system schemas.
|
39
43
|
await this.pool.query(system_db_schema_1.systemDBSchema);
|
40
44
|
}
|
@@ -108,6 +112,9 @@ class PostgresSystemDatabase {
|
|
108
112
|
const { rows } = await this.pool.query(`SELECT workflow_uuid FROM workflow_status WHERE status=$1 AND executor_id=$2`, [workflow_1.StatusString.PENDING, executorID]);
|
109
113
|
return rows.map(i => i.workflow_uuid);
|
110
114
|
}
|
115
|
+
async setWorkflowInputs(workflowUUID, args) {
|
116
|
+
await this.pool.query(`INSERT INTO workflow_inputs (workflow_uuid, inputs) VALUES($1, $2) ON CONFLICT (workflow_uuid) DO NOTHING`, [workflowUUID, JSON.stringify(args)]);
|
117
|
+
}
|
111
118
|
async getWorkflowInputs(workflowUUID) {
|
112
119
|
const { rows } = await this.pool.query(`SELECT inputs FROM workflow_inputs WHERE workflow_uuid=$1`, [workflowUUID]);
|
113
120
|
if (rows.length === 0) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"system_database.js","sourceRoot":"","sources":["../../src/system_database.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;AAEvD,qDAAmE;AACnE,mDAAmE;AACnE,2BAAuF;AACvF,mCAAqF;AACrF,yCAA0D;AAC1D,kEAAkJ;AAClJ,mCAAgC;AAInB,QAAA,oBAAoB,GAAG,kBAAkB,CAAC;AA6BvD,MAAa,sBAAsB;IASZ;IAAmC;IAAqC;IARpF,IAAI,CAAO;IAEpB,mBAAmB,GAAsB,IAAI,CAAC;IACrC,gBAAgB,GAA+B,EAAE,CAAC;IAClD,iBAAiB,GAA+B,EAAE,CAAC;IAEnD,oBAAoB,GAAqB,IAAI,GAAG,EAAE,CAAC;IAE5D,YAAqB,YAAwB,EAAW,kBAA0B,EAAW,MAAc;QA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AAC,CAAC;IAItD,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAK3D,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;OAEG;IACH,WAAW,IAAI,YAAY;CAM5B"}
|
@@ -44,6 +44,7 @@ exports.createInternalTestRuntime = createInternalTestRuntime;
|
|
44
44
|
class TestingRuntimeImpl {
|
45
45
|
#server = null;
|
46
46
|
#applicationConfig = undefined;
|
47
|
+
#isInitialized = false;
|
47
48
|
/**
|
48
49
|
* Initialize the testing runtime by loading user functions specified in classes and using the specified config.
|
49
50
|
* This should be the first function call before any subsequent calls.
|
@@ -54,12 +55,17 @@ class TestingRuntimeImpl {
|
|
54
55
|
await dbosExec.init(...userClasses);
|
55
56
|
this.#server = new server_1.DBOSHttpServer(dbosExec);
|
56
57
|
this.#applicationConfig = dbosExec.config.application;
|
58
|
+
this.#isInitialized = true;
|
57
59
|
}
|
58
60
|
/**
|
59
61
|
* Release resources after tests.
|
60
62
|
*/
|
61
63
|
async destroy() {
|
62
|
-
|
64
|
+
// Only release once.
|
65
|
+
if (this.#isInitialized) {
|
66
|
+
await this.#server?.dbosExec.destroy();
|
67
|
+
this.#isInitialized = false;
|
68
|
+
}
|
63
69
|
}
|
64
70
|
getConfig(key, defaultValue) {
|
65
71
|
if (!this.#applicationConfig || !(0, lodash_1.has)(this.#applicationConfig, key)) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"testing_runtime.js","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AAGA,wCAA0D;AAC1D,8CAAwD;AACxD,oCAA6D;AAE7D,iDAAsD;AACtD,oDAA4D;AAC5D,mDAA6E;AAM7E,mCAAkC;AAClC,2BAA4B;AAE5B;;GAEG;AACI,KAAK,UAAU,oBA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C,WAAW,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IACxD,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,iBAAS,CAAC,qEAAqE,CAAC,CAAC;SAC5F;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC/B,CAAC;CACF;AAhID,gDAgIC"}
|
package/dist/src/workflow.d.ts
CHANGED
@@ -49,11 +49,16 @@ export interface WorkflowContext extends DBOSContext {
|
|
49
49
|
export declare class WorkflowContextImpl extends DBOSContextImpl implements WorkflowContext {
|
50
50
|
#private;
|
51
51
|
readonly workflowConfig: WorkflowConfig;
|
52
|
+
readonly presetUUID: boolean;
|
52
53
|
functionID: number;
|
53
54
|
readonly resultBuffer: Map<number, BufferedResult>;
|
54
55
|
readonly isTempWorkflow: boolean;
|
55
|
-
constructor(
|
56
|
+
constructor(dbosExec: DBOSExecutor, parentCtx: DBOSContextImpl | undefined, workflowUUID: string, workflowConfig: WorkflowConfig, workflowName: string, presetUUID: boolean);
|
56
57
|
functionIDGetIncrement(): number;
|
58
|
+
/**
|
59
|
+
* Retrieve the transaction snapshot information of the current transaction
|
60
|
+
*/
|
61
|
+
retrieveSnapshot(client: UserDatabaseClient): Promise<string>;
|
57
62
|
/**
|
58
63
|
* Check if an operation has already executed in a workflow.
|
59
64
|
* If it previously executed successfully, return its output.
|
@@ -75,10 +80,18 @@ export declare class WorkflowContextImpl extends DBOSContextImpl implements Work
|
|
75
80
|
* Write a guarded operation's output to the database.
|
76
81
|
*/
|
77
82
|
recordGuardedOutput<R>(client: UserDatabaseClient, funcID: number, output: R): Promise<string>;
|
83
|
+
/**
|
84
|
+
* Write an unguarded operation's output to the database.
|
85
|
+
*/
|
86
|
+
recordUnguardedOutput<R>(client: UserDatabaseClient, funcID: number, output: R): Promise<string>;
|
78
87
|
/**
|
79
88
|
* Record an error in a guarded operation to the database.
|
80
89
|
*/
|
81
90
|
recordGuardedError(client: UserDatabaseClient, funcID: number, err: Error): Promise<void>;
|
91
|
+
/**
|
92
|
+
* Record an error in an unguarded operation to the database.
|
93
|
+
*/
|
94
|
+
recordUnguardedError(client: UserDatabaseClient, funcID: number, err: Error): Promise<string>;
|
82
95
|
/**
|
83
96
|
* Invoke another workflow as its child workflow and return a workflow handle.
|
84
97
|
* The child workflow is guaranteed to be executed exactly once, even if the workflow is retried with the same UUID.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/workflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,iBAAiB,CAAC;AAEnE,OAAO,EAAkB,WAAW,EAAE,kBAAkB,EAA0B,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAA2B,MAAM,gBAAgB,CAAC;AAI5F,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGtE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAG7F,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC;AAGjI,K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