@dbos-inc/dbos-sdk 1.17.4-preview → 1.17.5-preview
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/dbos-executor.d.ts +15 -1
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +109 -2
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos-runtime/cli.d.ts +1 -0
- package/dist/src/dbos-runtime/cli.d.ts.map +1 -1
- package/dist/src/dbos-runtime/cli.js +4 -0
- package/dist/src/dbos-runtime/cli.js.map +1 -1
- package/dist/src/dbos-runtime/config.d.ts +1 -0
- package/dist/src/dbos-runtime/config.d.ts.map +1 -1
- package/dist/src/dbos-runtime/config.js +11 -1
- package/dist/src/dbos-runtime/config.js.map +1 -1
- package/dist/src/debugger/debug_workflow.d.ts +5 -1
- package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
- package/dist/src/debugger/debug_workflow.js +83 -13
- package/dist/src/debugger/debug_workflow.js.map +1 -1
- package/dist/src/decorators.d.ts +4 -0
- package/dist/src/decorators.d.ts.map +1 -1
- package/dist/src/decorators.js +11 -1
- package/dist/src/decorators.js.map +1 -1
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +6 -1
- package/dist/src/httpServer/handler.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/procedure.d.ts +29 -0
- package/dist/src/procedure.d.ts.map +1 -0
- package/dist/src/procedure.js +17 -0
- package/dist/src/procedure.js.map +1 -0
- package/dist/src/testing/testing_runtime.d.ts.map +1 -1
- package/dist/src/testing/testing_runtime.js +3 -1
- package/dist/src/testing/testing_runtime.js.map +1 -1
- package/dist/src/user_database.d.ts +1 -0
- package/dist/src/user_database.d.ts.map +1 -1
- package/dist/src/user_database.js +13 -1
- package/dist/src/user_database.js.map +1 -1
- package/dist/src/workflow.d.ts +16 -27
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +222 -20
- package/dist/src/workflow.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -1
@@ -6,10 +6,11 @@ import { TelemetryCollector } from './telemetry/collector';
|
|
6
6
|
import { Tracer } from './telemetry/traces';
|
7
7
|
import { GlobalLogger as Logger } from './telemetry/logs';
|
8
8
|
import { TelemetryConfig } from './telemetry';
|
9
|
-
import { PoolConfig } from 'pg';
|
9
|
+
import { Pool, PoolClient, PoolConfig, QueryResultRow } from 'pg';
|
10
10
|
import { SystemDatabase } from './system_database';
|
11
11
|
import { UserDatabase, UserDatabaseName } from './user_database';
|
12
12
|
import { MethodRegistrationBase, ConfiguredInstance } from './decorators';
|
13
|
+
import { StoredProcedure, StoredProcedureConfig } from './procedure';
|
13
14
|
import { DBOSEventReceiver, DBOSExecutorContext } from ".";
|
14
15
|
export interface DBOSNull {
|
15
16
|
}
|
@@ -23,6 +24,7 @@ export interface DBOSConfig {
|
|
23
24
|
readonly application?: object;
|
24
25
|
readonly debugProxy?: string;
|
25
26
|
readonly debugMode?: boolean;
|
27
|
+
readonly appVersion?: string;
|
26
28
|
readonly http?: {
|
27
29
|
readonly cors_middleware?: boolean;
|
28
30
|
readonly credentials?: boolean;
|
@@ -41,6 +43,10 @@ interface CommunicatorInfo {
|
|
41
43
|
communicator: Communicator<unknown[], unknown>;
|
42
44
|
config: CommunicatorConfig;
|
43
45
|
}
|
46
|
+
interface ProcedureInfo {
|
47
|
+
procedure: StoredProcedure<unknown>;
|
48
|
+
config: StoredProcedureConfig;
|
49
|
+
}
|
44
50
|
interface InternalWorkflowParams extends WorkflowParams {
|
45
51
|
readonly tempWfType?: string;
|
46
52
|
readonly tempWfName?: string;
|
@@ -51,6 +57,7 @@ export declare const OperationType: {
|
|
51
57
|
readonly WORKFLOW: "workflow";
|
52
58
|
readonly TRANSACTION: "transaction";
|
53
59
|
readonly COMMUNICATOR: "communicator";
|
60
|
+
readonly PROCEDURE: "procedure";
|
54
61
|
};
|
55
62
|
export declare class DBOSExecutor implements DBOSExecutorContext {
|
56
63
|
#private;
|
@@ -58,10 +65,12 @@ export declare class DBOSExecutor implements DBOSExecutorContext {
|
|
58
65
|
initialized: boolean;
|
59
66
|
userDatabase: UserDatabase;
|
60
67
|
readonly systemDatabase: SystemDatabase;
|
68
|
+
readonly procedurePool: Pool;
|
61
69
|
static readonly tempWorkflowName = "temp_workflow";
|
62
70
|
readonly workflowInfoMap: Map<string, WorkflowInfo>;
|
63
71
|
readonly transactionInfoMap: Map<string, TransactionInfo>;
|
64
72
|
readonly communicatorInfoMap: Map<string, CommunicatorInfo>;
|
73
|
+
readonly procedureInfoMap: Map<string, ProcedureInfo>;
|
65
74
|
readonly registeredOperations: Array<MethodRegistrationBase>;
|
66
75
|
readonly pendingWorkflowMap: Map<string, Promise<unknown>>;
|
67
76
|
readonly workflowResultBuffer: Map<string, Map<number, BufferedResult>>;
|
@@ -85,6 +94,7 @@ export declare class DBOSExecutor implements DBOSExecutorContext {
|
|
85
94
|
methodReg: MethodRegistrationBase;
|
86
95
|
}[];
|
87
96
|
init(classes?: object[]): Promise<void>;
|
97
|
+
callProcedure<R extends QueryResultRow = any>(proc: StoredProcedure<unknown>, args: unknown[]): Promise<R[]>;
|
88
98
|
destroy(): Promise<void>;
|
89
99
|
getWorkflowInfo(wf: Workflow<unknown[], unknown>): WorkflowInfo | undefined;
|
90
100
|
getWorkflowInfoByStatus(wf: WorkflowStatus): {
|
@@ -101,6 +111,8 @@ export declare class DBOSExecutor implements DBOSExecutorContext {
|
|
101
111
|
commInfo: CommunicatorInfo | undefined;
|
102
112
|
clsInst: ConfiguredInstance | null;
|
103
113
|
};
|
114
|
+
getProcedureClassName(pf: StoredProcedure<unknown>): string;
|
115
|
+
getProcedureInfo(pf: StoredProcedure<unknown>): ProcedureInfo | undefined;
|
104
116
|
workflow<T extends unknown[], R>(wf: Workflow<T, R>, params: InternalWorkflowParams, ...args: T): Promise<WorkflowHandle<R>>;
|
105
117
|
internalWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, params: InternalWorkflowParams, callerUUID?: string, callerFunctionID?: number, ...args: T): Promise<WorkflowHandle<R>>;
|
106
118
|
/**
|
@@ -108,6 +120,8 @@ export declare class DBOSExecutor implements DBOSExecutorContext {
|
|
108
120
|
*/
|
109
121
|
debugWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, params: WorkflowParams, callerUUID?: string, callerFunctionID?: number, ...args: T): Promise<WorkflowHandle<R>>;
|
110
122
|
transaction<T extends unknown[], R>(txn: Transaction<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
|
123
|
+
procedure<R>(proc: StoredProcedure<R>, params: WorkflowParams, ...args: unknown[]): Promise<R>;
|
124
|
+
executeProcedure<R>(func: (client: PoolClient) => Promise<R>, config: TransactionConfig): Promise<R>;
|
111
125
|
external<T extends unknown[], R>(commFn: Communicator<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
|
112
126
|
send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
|
113
127
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dbos-executor.d.ts","sourceRoot":"","sources":["../../src/dbos-executor.ts"],"names":[],"mappings":";AAEA,OAAO,EAEL,QAAQ,EACR,cAAc,EAEd,cAAc,EACd,cAAc,EAGd,cAAc,EAEd,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,OAAO,
|
1
|
+
{"version":3,"file":"dbos-executor.d.ts","sourceRoot":"","sources":["../../src/dbos-executor.ts"],"names":[],"mappings":";AAEA,OAAO,EAEL,QAAQ,EACR,cAAc,EAEd,cAAc,EACd,cAAc,EAGd,cAAc,EAEd,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAkB,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,kBA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G,EAAE,MAAM,EAAE,cAAc,GAAE,MAAmD,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAI5I;;OAEG;IACH,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC;IAS5D;;;OAGG;IACG,uBAAuB,CAAC,WAAW,GAAE,MAAM,EAAc,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;IAuB9F,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,GAAE,OAAe,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IA8FpH;;OAEG;IACG,oBAAoB;IAQpB,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;IAiDhD,qBAAqB;IAcrB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;CAQ3D"}
|
@@ -7,10 +7,12 @@ exports.DBOSExecutor = exports.OperationType = exports.dbosNull = void 0;
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
8
8
|
const error_1 = require("./error");
|
9
9
|
const workflow_1 = require("./workflow");
|
10
|
+
const transaction_1 = require("./transaction");
|
10
11
|
const collector_1 = require("./telemetry/collector");
|
11
12
|
const traces_1 = require("./telemetry/traces");
|
12
13
|
const logs_1 = require("./telemetry/logs");
|
13
14
|
const exporters_1 = require("./telemetry/exporters");
|
15
|
+
const pg_1 = require("pg");
|
14
16
|
const system_database_1 = require("./system_database");
|
15
17
|
const uuid_1 = require("uuid");
|
16
18
|
const user_database_1 = require("./user_database");
|
@@ -29,9 +31,11 @@ exports.OperationType = {
|
|
29
31
|
WORKFLOW: "workflow",
|
30
32
|
TRANSACTION: "transaction",
|
31
33
|
COMMUNICATOR: "communicator",
|
34
|
+
PROCEDURE: "procedure",
|
32
35
|
};
|
33
36
|
const TempWorkflowType = {
|
34
37
|
transaction: "transaction",
|
38
|
+
procedure: "procedure",
|
35
39
|
external: "external",
|
36
40
|
send: "send",
|
37
41
|
};
|
@@ -42,6 +46,7 @@ class DBOSExecutor {
|
|
42
46
|
userDatabase = null;
|
43
47
|
// System Database
|
44
48
|
systemDatabase;
|
49
|
+
procedurePool;
|
45
50
|
// Temporary workflows are created by calling transaction/send/recv directly from the executor class
|
46
51
|
static tempWorkflowName = "temp_workflow";
|
47
52
|
workflowInfoMap = new Map([
|
@@ -59,6 +64,7 @@ class DBOSExecutor {
|
|
59
64
|
]);
|
60
65
|
transactionInfoMap = new Map();
|
61
66
|
communicatorInfoMap = new Map();
|
67
|
+
procedureInfoMap = new Map();
|
62
68
|
registeredOperations = [];
|
63
69
|
pendingWorkflowMap = new Map(); // Map from workflowUUID to workflow promise
|
64
70
|
workflowResultBuffer = new Map(); // Map from workflowUUID to its remaining result buffer.
|
@@ -111,6 +117,7 @@ class DBOSExecutor {
|
|
111
117
|
}
|
112
118
|
}
|
113
119
|
}
|
120
|
+
this.procedurePool = new pg_1.Pool(this.config.poolConfig);
|
114
121
|
if (systemDatabase) {
|
115
122
|
this.logger.debug("Using provided system database"); // XXX print the name or something
|
116
123
|
this.systemDatabase = systemDatabase;
|
@@ -201,6 +208,9 @@ class DBOSExecutor {
|
|
201
208
|
else if (ro.commConfig) {
|
202
209
|
this.#registerCommunicator(ro);
|
203
210
|
}
|
211
|
+
else if (ro.procConfig) {
|
212
|
+
this.#registerProcedure(ro);
|
213
|
+
}
|
204
214
|
for (const [evtRcvr, _cfg] of ro.eventReceiverInfo) {
|
205
215
|
if (!this.eventReceivers.includes(evtRcvr))
|
206
216
|
this.eventReceivers.push(evtRcvr);
|
@@ -273,6 +283,46 @@ class DBOSExecutor {
|
|
273
283
|
}
|
274
284
|
this.logger.info("Workflow executor initialized");
|
275
285
|
}
|
286
|
+
#logNotice(msg) {
|
287
|
+
switch (msg.severity) {
|
288
|
+
case "INFO":
|
289
|
+
case "LOG":
|
290
|
+
case "NOTICE":
|
291
|
+
this.logger.info(msg.message);
|
292
|
+
break;
|
293
|
+
case "WARNING":
|
294
|
+
this.logger.warn(msg.message);
|
295
|
+
break;
|
296
|
+
case "DEBUG":
|
297
|
+
this.logger.debug(msg.message);
|
298
|
+
break;
|
299
|
+
case "ERROR":
|
300
|
+
case "FATAL":
|
301
|
+
case "PANIC":
|
302
|
+
this.logger.error(msg.message);
|
303
|
+
break;
|
304
|
+
default:
|
305
|
+
this.logger.error(`Unknown notice severity: ${msg.severity} - ${msg.message}`);
|
306
|
+
}
|
307
|
+
}
|
308
|
+
async callProcedure(proc, args) {
|
309
|
+
const client = await this.procedurePool.connect();
|
310
|
+
const log = (msg) => this.#logNotice(msg);
|
311
|
+
const procClassName = this.getProcedureClassName(proc);
|
312
|
+
const plainProcName = `${procClassName}_${proc.name}_p`;
|
313
|
+
const procName = this.config.appVersion
|
314
|
+
? `v${this.config.appVersion}_${plainProcName}`
|
315
|
+
: plainProcName;
|
316
|
+
const sql = `CALL "${procName}"(${args.map((_v, i) => `$${i + 1}`).join()});`;
|
317
|
+
try {
|
318
|
+
client.on('notice', log);
|
319
|
+
return await client.query(sql, args).then(value => value.rows);
|
320
|
+
}
|
321
|
+
finally {
|
322
|
+
client.off('notice', log);
|
323
|
+
client.release();
|
324
|
+
}
|
325
|
+
}
|
276
326
|
async destroy() {
|
277
327
|
if (this.pendingWorkflowMap.size > 0) {
|
278
328
|
this.logger.info("Waiting for pending workflows to finish.");
|
@@ -291,6 +341,7 @@ class DBOSExecutor {
|
|
291
341
|
if (this.userDatabase) {
|
292
342
|
await this.userDatabase.destroy();
|
293
343
|
}
|
344
|
+
await this.procedurePool.end();
|
294
345
|
await this.logger.destroy();
|
295
346
|
}
|
296
347
|
/* WORKFLOW OPERATIONS */
|
@@ -336,6 +387,19 @@ class DBOSExecutor {
|
|
336
387
|
this.communicatorInfoMap.set(cfn, commInfo);
|
337
388
|
this.logger.debug(`Registered communicator ${cfn}`);
|
338
389
|
}
|
390
|
+
#registerProcedure(ro) {
|
391
|
+
const proc = ro.registeredFunction;
|
392
|
+
const cfn = ro.className + '.' + ro.name;
|
393
|
+
if (this.procedureInfoMap.has(cfn)) {
|
394
|
+
throw new error_1.DBOSError(`Repeated Procedure name: ${cfn}`);
|
395
|
+
}
|
396
|
+
const procInfo = {
|
397
|
+
procedure: proc,
|
398
|
+
config: { ...ro.procConfig },
|
399
|
+
};
|
400
|
+
this.procedureInfoMap.set(cfn, procInfo);
|
401
|
+
this.logger.debug(`Registered stored proc ${cfn}`);
|
402
|
+
}
|
339
403
|
getWorkflowInfo(wf) {
|
340
404
|
const wfname = (wf.name === DBOSExecutor.tempWorkflowName)
|
341
405
|
? wf.name
|
@@ -401,6 +465,14 @@ class DBOSExecutor {
|
|
401
465
|
}
|
402
466
|
return { commInfo, clsInst: (0, decorators_1.getConfiguredInstance)(className, cfgName) };
|
403
467
|
}
|
468
|
+
getProcedureClassName(pf) {
|
469
|
+
return (0, decorators_1.getRegisteredMethodClassName)(pf);
|
470
|
+
}
|
471
|
+
getProcedureInfo(pf) {
|
472
|
+
const pfName = (0, decorators_1.getRegisteredMethodClassName)(pf) + '.' + pf.name;
|
473
|
+
return this.procedureInfoMap.get(pfName);
|
474
|
+
}
|
475
|
+
// TODO: getProcedureInfoByNames??
|
404
476
|
async workflow(wf, params, ...args) {
|
405
477
|
if (this.debugMode) {
|
406
478
|
return this.debugWorkflow(wf, params, undefined, undefined, ...args);
|
@@ -442,7 +514,8 @@ class DBOSExecutor {
|
|
442
514
|
}
|
443
515
|
// Synchronously set the workflow's status to PENDING and record workflow inputs (for non single-transaction workflows).
|
444
516
|
// We have to do it for all types of workflows because operation_outputs table has a foreign key constraint on workflow status table.
|
445
|
-
if (wCtxt.tempWfOperationType !== TempWorkflowType.transaction
|
517
|
+
if (wCtxt.tempWfOperationType !== TempWorkflowType.transaction
|
518
|
+
&& wCtxt.tempWfOperationType !== TempWorkflowType.procedure) {
|
446
519
|
args = await this.systemDatabase.initWorkflowStatus(internalStatus, args);
|
447
520
|
}
|
448
521
|
const runWorkflow = async () => {
|
@@ -480,7 +553,8 @@ class DBOSExecutor {
|
|
480
553
|
}
|
481
554
|
finally {
|
482
555
|
this.tracer.endSpan(wCtxt.span);
|
483
|
-
if (wCtxt.tempWfOperationType === TempWorkflowType.transaction
|
556
|
+
if (wCtxt.tempWfOperationType === TempWorkflowType.transaction
|
557
|
+
|| wCtxt.tempWfOperationType === TempWorkflowType.procedure) {
|
484
558
|
// For single-transaction workflows, asynchronously record inputs.
|
485
559
|
// We must buffer inputs after workflow status is buffered/flushed because workflow_inputs table has a foreign key reference to the workflow_status table.
|
486
560
|
this.systemDatabase.bufferWorkflowInputs(workflowUUID, args);
|
@@ -558,6 +632,39 @@ class DBOSExecutor {
|
|
558
632
|
tempWfClass: (0, decorators_1.getRegisteredMethodClassName)(txn),
|
559
633
|
}, ...args)).getResult();
|
560
634
|
}
|
635
|
+
async procedure(proc, params, ...args) {
|
636
|
+
// Create a workflow and call procedure.
|
637
|
+
const temp_workflow = async (ctxt, ...args) => {
|
638
|
+
const ctxtImpl = ctxt;
|
639
|
+
return await ctxtImpl.procedure(proc, ...args);
|
640
|
+
};
|
641
|
+
return (await this.workflow(temp_workflow, { ...params,
|
642
|
+
tempWfType: TempWorkflowType.procedure,
|
643
|
+
tempWfName: (0, decorators_1.getRegisteredMethodName)(proc),
|
644
|
+
tempWfClass: (0, decorators_1.getRegisteredMethodClassName)(proc),
|
645
|
+
}, ...args)).getResult();
|
646
|
+
}
|
647
|
+
async executeProcedure(func, config) {
|
648
|
+
const client = await this.procedurePool.connect();
|
649
|
+
try {
|
650
|
+
const readOnly = config.readOnly ?? false;
|
651
|
+
const isolationLevel = config.isolationLevel ?? transaction_1.IsolationLevel.Serializable;
|
652
|
+
await client.query(`BEGIN ISOLATION LEVEL ${isolationLevel}`);
|
653
|
+
if (readOnly) {
|
654
|
+
await client.query(`SET TRANSACTION READ ONLY`);
|
655
|
+
}
|
656
|
+
const result = await func(client);
|
657
|
+
await client.query(`COMMIT`);
|
658
|
+
return result;
|
659
|
+
}
|
660
|
+
catch (err) {
|
661
|
+
await client.query(`ROLLBACK`);
|
662
|
+
throw err;
|
663
|
+
}
|
664
|
+
finally {
|
665
|
+
client.release();
|
666
|
+
}
|
667
|
+
}
|
561
668
|
async external(commFn, params, ...args) {
|
562
669
|
// Create a workflow and call external.
|
563
670
|
const temp_workflow = async (ctxt, ...args) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dbos-executor.js","sourceRoot":"","sources":["../../src/dbos-executor.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAuD;AACvD,mCAA+J;AAC/J,yCAYoB;AAIpB,qDAA2D;AAC3D,+CAA4C;AAC5C,2CAA0D;AAC1D,qDAA0D;AAG1D,uDAAmG;AACnG,+BAAoC;AACpC,mDAOyB;AACzB,6CAA4P;AAC5P,4CAAoD;AACpD,gDAAkC;AAClC,uCAAyD;AAEzD,8DAAiE;AACjE,qDAAiD;AACjD,mCAA4C;AAC5C,0DAA6B;AAG7B,mCAA6B;AAIhB,QAAA,QAAQ,GAAa,EAAE,CAAC;AAwCxB,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;CACpB,CAAC;AAEX,MAAM,gBAAgB,GAAG;IACvB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;AAEX,MAAa,YAAY;IAiDF;IAhDrB,WAAW,CAAU;IACrB,gBAAgB;IAChB,YAAY,GAAiB,IAA+B,CAAC;IAC7D,kBAAkB;IACT,cAAc,CAAiB;IAExC,oGAAoG;IACpG,MAAM,CAAU,gBAAgB,GAAG,eAAe,CAAC;IAE1C,eAAe,GAA8B,IAAI,GAAG,CAAC;QAC5D,+DAA+D;QAC/D;YACE,YAAY,CAAC,gBAAgB;YAC7B;gBACE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AM,CAAC;
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAuD,MAAM,UAAU,CAAC;AAK3F,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAcjD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAwKD,wBAAsB,SAAS,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,iBA2BjH"}
|
@@ -25,6 +25,8 @@ program
|
|
25
25
|
.option("-l, --loglevel <string>", "Specify log level")
|
26
26
|
.option("-c, --configfile <string>", "Specify the config file path (DEPRECATED)")
|
27
27
|
.option("-d, --appDir <string>", "Specify the application root directory")
|
28
|
+
.option('--app-version <string>', 'override DBOS__APPVERSION environment variable')
|
29
|
+
.option('--no-app-version', 'ignore DBOS__APPVERSION environment variable')
|
28
30
|
.action(async (options) => {
|
29
31
|
if (options?.configfile) {
|
30
32
|
console.warn('\x1b[33m%s\x1b[0m', "The --configfile option is deprecated. Please use --appDir instead.");
|
@@ -41,6 +43,8 @@ program
|
|
41
43
|
.option("-l, --loglevel <string>", "Specify log level")
|
42
44
|
.option("-c, --configfile <string>", "Specify the config file path (DEPRECATED)")
|
43
45
|
.option("-d, --appDir <string>", "Specify the application root directory")
|
46
|
+
.option('--app-version <string>', 'override DBOS__APPVERSION environment variable')
|
47
|
+
.option('--no-app-version', 'ignore DBOS__APPVERSION environment variable')
|
44
48
|
.action(async (options) => {
|
45
49
|
const [dbosConfig, runtimeConfig] = (0, config_1.parseConfigFile)(options, options.proxy !== undefined);
|
46
50
|
await (0, debug_1.debugWorkflow)(dbosConfig, runtimeConfig, options.uuid, options.proxy);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";;;;AACA,uCAA2D;AAC3D,qCAA2F;AAC3F,yCAAoC;AAEpC,mCAAwC;AACxC,uCAAuD;AACvD,4CAAiD;AACjD,sDAA4D;AAC5D,sDAA2D;AAC3D,2CAAwC;AACxC,+DAAsG;AACtG,0BAAqD;AACrD,+CAAoC;AAEpC,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";;;;AACA,uCAA2D;AAC3D,qCAA2F;AAC3F,yCAAoC;AAEpC,mCAAwC;AACxC,uCAAuD;AACvD,4CAAiD;AACjD,sDAA4D;AAC5D,sDAA2D;AAC3D,2CAAwC;AACxC,+DAAsG;AACtG,0BAAqD;AACrD,+CAAoC;AAEpC,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AA4B9B,iEAAiE;AACjE,MAAM,WAAW,GAAG,OAAO,CAAC,uBAAuB,CAAwB,CAAC;AAC5E,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAErC,OAAO;KACJ,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,kBAAkB,CAAC;KAC/B,MAAM,CAAC,qBAAqB,EAAE,yBAAyB,CAAC;KACxD,MAAM,CAAC,yBAAyB,EAAE,mBAAmB,CAAC;KACtD,MAAM,CAAC,2BAA2B,EAAE,2CAA2C,CAAC;K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Options {
|
|
38
38
|
loglevel?: string;
|
39
39
|
configfile?: string;
|
40
40
|
appDir?: string;
|
41
|
+
appVersion?: string | boolean;
|
41
42
|
}
|
42
43
|
export declare function parseConfigFile(cliOptions?: ParseOptions, useProxy?: boolean): [DBOSConfig, DBOSRuntimeConfig];
|
43
44
|
//# sourceMappingURL=config.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAqB,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAKrD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,GAAG,CAAC,EAAE,OAAO,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,aAAa,CAAC,EAAE,gBAAgB,CAAC;QACjC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IACF,IAAI,CAAC,EAAE;QACL,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,EAAE,C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
172
172
|
system_database: configFile.database.sys_db_name ?? `${poolConfig.database}_dbos_sys`,
|
173
173
|
application: configFile.application || undefined,
|
174
174
|
env: configFile.env || {},
|
175
|
-
http: configFile.http
|
175
|
+
http: configFile.http,
|
176
|
+
appVersion: getAppVersion(cliOptions?.appVersion),
|
176
177
|
};
|
177
178
|
/*************************************/
|
178
179
|
/* Build final runtime Configuration */
|
@@ -191,4 +192,13 @@ function parseConfigFile(cliOptions, useProxy = false) {
|
|
191
192
|
return [dbosConfig, runtimeConfig];
|
192
193
|
}
|
193
194
|
exports.parseConfigFile = parseConfigFile;
|
195
|
+
function getAppVersion(appVersion) {
|
196
|
+
if (typeof appVersion === "string") {
|
197
|
+
return appVersion;
|
198
|
+
}
|
199
|
+
if (appVersion === false) {
|
200
|
+
return undefined;
|
201
|
+
}
|
202
|
+
return process.env.DBOS__APPVERSION;
|
203
|
+
}
|
194
204
|
//# sourceMappingURL=config.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dbos-runtime/config.ts"],"names":[],"mappings":";;;;;;AAAA,oCAAmD;AACnD,oCAAmE;AAGnE,gDAAwB;AACxB,uCAAiE;AACjE,oDAAoD;AAEpD,2BAAmC;AACnC,8CAA4C;AAC5C,gDAAwB;AAEX,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AACrD,MAAM,oBAAoB,GAAG,cAAI,CAAC,IAAI,CAAC,IAAA,uBAAe,EAAC,SAAS,CAAC,EAAE,yBAAyB,CAAC,CAAC;AAC9F,MAAM,gBAAgB,GAAG,gBAAQ,CAAC,KAAK,CAAC,IAAA,oBAAY,EAAC,oBAAoB,CAAC,CAAW,CAAC;AACtF,MAAM,GAAG,GAAG,IAAI,aAAG,CAAC,EAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;AA4BtD;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,OAAe;IAC/C,MAAM,KAAK,GA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GAAsB;QACvC,WAAW,EAAE,CAAC,GAAG,WAAW,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,aAAa,EAAE,IAAI,CAAC,IAAI,IAAI;KACjF,CAAC;IAEF,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AACrC,CAAC;AAtFD,0CAsFC;AAED,SAAS,aAAa,CAAC,UAAwC;IAC7D,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QAAC,OAAO,UAAU,CAAC;IAAC,CAAC;IAC1D,IAAI,UAAU,KAAK,KAAK,EAAE,CAAC;QAAC,OAAO,SAAS,CAAC;IAAC,CAAC;IAC/C,OAAO,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;AACtC,CAAC"}
|
@@ -6,6 +6,8 @@ import { DBOSContextImpl } from "../context";
|
|
6
6
|
import { ConfiguredInstance } from "../decorators";
|
7
7
|
import { WFInvokeFuncs, WfInvokeWfs, WfInvokeWfsAsync, Workflow, WorkflowConfig, WorkflowContext, WorkflowHandle } from "../workflow";
|
8
8
|
import { InvokeFuncsInst } from "../httpServer/handler";
|
9
|
+
import { StoredProcedure } from "../procedure";
|
10
|
+
import { PoolClient } from "pg";
|
9
11
|
interface RecordedResult<R> {
|
10
12
|
output: R;
|
11
13
|
txn_snapshot: string;
|
@@ -22,12 +24,14 @@ export declare class WorkflowContextDebug extends DBOSContextImpl implements Wor
|
|
22
24
|
constructor(dbosExec: DBOSExecutor, parentCtx: DBOSContextImpl | undefined, workflowUUID: string, workflowConfig: WorkflowConfig, workflowName: string);
|
23
25
|
functionIDGetIncrement(): number;
|
24
26
|
invoke<T extends object>(object: T | ConfiguredInstance): WFInvokeFuncs<T> | InvokeFuncsInst<T>;
|
25
|
-
|
27
|
+
checkTxExecution<R>(client: UserDatabaseClient, funcID: number): Promise<RecordedResult<R> | Error>;
|
28
|
+
checkProcExecution<R>(client: PoolClient, funcID: number): Promise<RecordedResult<R> | Error>;
|
26
29
|
/**
|
27
30
|
* Execute a transactional function in debug mode.
|
28
31
|
* If a debug proxy is provided, it connects to a debug proxy and everything should be read-only.
|
29
32
|
*/
|
30
33
|
transaction<T extends unknown[], R>(txn: Transaction<T, R>, clsinst: ConfiguredInstance | null, ...args: T): Promise<R>;
|
34
|
+
procedure<R>(proc: StoredProcedure<R>, ...args: unknown[]): Promise<R>;
|
31
35
|
external<T extends unknown[], R>(commFn: Communicator<T, R>, _clsinst: ConfiguredInstance | null, ..._args: T): Promise<R>;
|
32
36
|
startChildWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
|
33
37
|
invokeChildWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, ...args: T): Promise<R>;
|