@dbos-inc/dbos-sdk 0.7.21-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/applications/deploy-app-code.d.ts.map +1 -1
- package/dist/src/cloud-cli/applications/deploy-app-code.js +1 -0
- package/dist/src/cloud-cli/applications/deploy-app-code.js.map +1 -1
- 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 +3 -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 +7 -1
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +110 -35
- 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 +1 -0
- package/dist/src/dbos-runtime/cli.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 +1 -0
- 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 +38 -0
- package/dist/src/debugger/debug_workflow.d.ts.map +1 -0
- package/dist/src/debugger/debug_workflow.js +192 -0
- package/dist/src/debugger/debug_workflow.js.map +1 -0
- package/dist/src/error.d.ts +3 -0
- package/dist/src/error.d.ts.map +1 -1
- package/dist/src/error.js +8 -1
- package/dist/src/error.js.map +1 -1
- package/dist/src/httpServer/handler.d.ts +2 -1
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +27 -15
- 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 +19 -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/telemetry/collector.d.ts +2 -2
- package/dist/src/telemetry/collector.d.ts.map +1 -1
- package/dist/src/telemetry/collector.js.map +1 -1
- package/dist/src/telemetry/exporters.d.ts +5 -6
- package/dist/src/telemetry/exporters.d.ts.map +1 -1
- package/dist/src/telemetry/exporters.js +2 -42
- package/dist/src/telemetry/exporters.js.map +1 -1
- package/dist/src/telemetry/signals.d.ts +0 -10
- package/dist/src/telemetry/signals.d.ts.map +1 -1
- package/dist/src/telemetry/signals.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/transaction.d.ts +2 -1
- package/dist/src/transaction.d.ts.map +1 -1
- package/dist/src/transaction.js.map +1 -1
- package/dist/src/workflow.d.ts +15 -2
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +92 -56
- 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 +2 -2
- package/dist/src/provenance/provenance_daemon.d.ts +0 -34
- package/dist/src/provenance/provenance_daemon.d.ts.map +0 -1
- package/dist/src/provenance/provenance_daemon.js +0 -86
- package/dist/src/provenance/provenance_daemon.js.map +0 -1
@@ -7,6 +7,7 @@ exports.DBOSExecutor = 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 exporters_1 = require("./telemetry/exporters");
|
11
12
|
const collector_1 = require("./telemetry/collector");
|
12
13
|
const traces_1 = require("./telemetry/traces");
|
@@ -18,6 +19,7 @@ const decorators_1 = require("./decorators");
|
|
18
19
|
const api_1 = require("@opentelemetry/api");
|
19
20
|
const knex_1 = __importDefault(require("knex"));
|
20
21
|
const context_1 = require("./context");
|
22
|
+
const debug_workflow_1 = require("./debugger/debug_workflow");
|
21
23
|
exports.dbosNull = {};
|
22
24
|
class DBOSExecutor {
|
23
25
|
config;
|
@@ -41,13 +43,14 @@ class DBOSExecutor {
|
|
41
43
|
]);
|
42
44
|
transactionConfigMap = new Map();
|
43
45
|
communicatorConfigMap = new Map();
|
44
|
-
topicConfigMap = new Map();
|
45
46
|
registeredOperations = [];
|
46
|
-
pendingWorkflowMap = new Map(); // Map from workflowUUID to workflow promise
|
47
|
+
pendingWorkflowMap = new Map(); // Map from workflowUUID to workflow promise
|
48
|
+
pendingAsyncWrites = new Map(); // Map from workflowUUID to asynchronous write promise
|
47
49
|
telemetryCollector;
|
48
50
|
flushBufferIntervalMs = 1000;
|
49
51
|
flushBufferID;
|
50
52
|
static defaultNotificationTimeoutSec = 60;
|
53
|
+
debugMode;
|
51
54
|
logger;
|
52
55
|
tracer;
|
53
56
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
@@ -55,7 +58,21 @@ class DBOSExecutor {
|
|
55
58
|
/* WORKFLOW EXECUTOR LIFE CYCLE MANAGEMENT */
|
56
59
|
constructor(config, systemDatabase) {
|
57
60
|
this.config = config;
|
61
|
+
this.debugMode = config.debugProxy ? true : false;
|
58
62
|
this.logger = (0, logs_1.createGlobalLogger)(this.config.telemetry?.logs);
|
63
|
+
if (this.debugMode) {
|
64
|
+
this.logger.info("Running in debug mode!");
|
65
|
+
try {
|
66
|
+
const url = new URL(this.config.debugProxy);
|
67
|
+
this.config.poolConfig.host = url.hostname;
|
68
|
+
this.config.poolConfig.port = parseInt(url.port, 10);
|
69
|
+
this.logger.info(`Debugging mode proxy: ${this.config.poolConfig.host}:${this.config.poolConfig.port}`);
|
70
|
+
}
|
71
|
+
catch (err) {
|
72
|
+
this.logger.error(err);
|
73
|
+
throw err;
|
74
|
+
}
|
75
|
+
}
|
59
76
|
if (systemDatabase) {
|
60
77
|
this.logger.debug("Using provided system database"); // XXX print the name or something
|
61
78
|
this.systemDatabase = systemDatabase;
|
@@ -65,12 +82,14 @@ class DBOSExecutor {
|
|
65
82
|
this.systemDatabase = new system_database_1.PostgresSystemDatabase(this.config.poolConfig, this.config.system_database, this.logger);
|
66
83
|
}
|
67
84
|
this.flushBufferID = setInterval(() => {
|
68
|
-
|
85
|
+
if (!this.debugMode) {
|
86
|
+
void this.flushWorkflowStatusBuffer();
|
87
|
+
}
|
69
88
|
}, this.flushBufferIntervalMs);
|
70
89
|
this.logger.debug("Started workflow status buffer worker");
|
71
90
|
// Add Jaeger exporter if tracing is enabled
|
72
91
|
const telemetryExporters = [];
|
73
|
-
if (this.config.telemetry?.traces?.enabled) {
|
92
|
+
if (this.config.telemetry?.traces?.enabled && !this.debugMode) {
|
74
93
|
telemetryExporters.push(new exporters_1.JaegerExporter(this.config.telemetry?.traces?.endpoint));
|
75
94
|
this.logger.debug("Loaded Jaeger Telemetry Exporter");
|
76
95
|
}
|
@@ -80,7 +99,9 @@ class DBOSExecutor {
|
|
80
99
|
}
|
81
100
|
configureDbClient() {
|
82
101
|
const userDbClient = this.config.userDbclient;
|
102
|
+
const userDBConfig = this.config.poolConfig;
|
83
103
|
if (userDbClient === user_database_1.UserDatabaseName.PRISMA) {
|
104
|
+
// TODO: make Prisma work with debugger proxy.
|
84
105
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
|
85
106
|
const { PrismaClient } = require("@prisma/client");
|
86
107
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call
|
@@ -94,11 +115,11 @@ class DBOSExecutor {
|
|
94
115
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
95
116
|
this.userDatabase = new user_database_1.TypeORMDatabase(new DataSourceExports.DataSource({
|
96
117
|
type: "postgres",
|
97
|
-
host:
|
98
|
-
port:
|
99
|
-
username:
|
100
|
-
password:
|
101
|
-
database:
|
118
|
+
host: userDBConfig.host,
|
119
|
+
port: userDBConfig.port,
|
120
|
+
username: userDBConfig.user,
|
121
|
+
password: userDBConfig.password,
|
122
|
+
database: userDBConfig.database,
|
102
123
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
103
124
|
entities: this.entities
|
104
125
|
}));
|
@@ -112,19 +133,19 @@ class DBOSExecutor {
|
|
112
133
|
const knexConfig = {
|
113
134
|
client: "postgres",
|
114
135
|
connection: {
|
115
|
-
host:
|
116
|
-
port:
|
117
|
-
user:
|
118
|
-
password:
|
119
|
-
database:
|
120
|
-
ssl:
|
136
|
+
host: userDBConfig.host,
|
137
|
+
port: userDBConfig.port,
|
138
|
+
user: userDBConfig.user,
|
139
|
+
password: userDBConfig.password,
|
140
|
+
database: userDBConfig.database,
|
141
|
+
ssl: userDBConfig.ssl,
|
121
142
|
}
|
122
143
|
};
|
123
144
|
this.userDatabase = new user_database_1.KnexUserDatabase((0, knex_1.default)(knexConfig));
|
124
145
|
this.logger.debug("Loaded Knex user database");
|
125
146
|
}
|
126
147
|
else {
|
127
|
-
this.userDatabase = new user_database_1.PGNodeUserDatabase(
|
148
|
+
this.userDatabase = new user_database_1.PGNodeUserDatabase(userDBConfig);
|
128
149
|
this.logger.debug("Loaded Postgres user database");
|
129
150
|
}
|
130
151
|
}
|
@@ -170,23 +191,32 @@ class DBOSExecutor {
|
|
170
191
|
for (const cls of classes) {
|
171
192
|
this.#registerClass(cls);
|
172
193
|
}
|
173
|
-
|
174
|
-
|
175
|
-
|
194
|
+
// Debug mode doesn't need to initialize the DBs. Everything should appear to be read-only.
|
195
|
+
if (!this.debugMode) {
|
196
|
+
await this.systemDatabase.init();
|
197
|
+
await this.telemetryCollector.init(this.registeredOperations);
|
198
|
+
await this.userDatabase.init(); // Skip user DB init because we're using the proxy.
|
199
|
+
await this.recoverPendingWorkflows();
|
200
|
+
}
|
176
201
|
}
|
177
202
|
catch (err) {
|
178
203
|
if (err instanceof Error) {
|
179
204
|
this.logger.error(`failed to initialize workflow executor: ${err.message}`, err, err.stack);
|
180
205
|
throw new error_1.DBOSInitializationError(err.message);
|
181
206
|
}
|
207
|
+
else {
|
208
|
+
throw err;
|
209
|
+
}
|
182
210
|
}
|
183
|
-
await this.recoverPendingWorkflows();
|
184
211
|
this.initialized = true;
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
212
|
+
// Only execute init code if under non-debug mode
|
213
|
+
if (!this.debugMode) {
|
214
|
+
for (const v of this.registeredOperations) {
|
215
|
+
const m = v;
|
216
|
+
if (m.init === true) {
|
217
|
+
this.logger.debug("Executing init method: " + m.name);
|
218
|
+
await m.origFunction(new context_1.InitContext(this));
|
219
|
+
}
|
190
220
|
}
|
191
221
|
}
|
192
222
|
this.logger.info("Workflow executor initialized");
|
@@ -196,6 +226,10 @@ class DBOSExecutor {
|
|
196
226
|
this.logger.info("Waiting for pending workflows to finish.");
|
197
227
|
await Promise.allSettled(this.pendingWorkflowMap.values());
|
198
228
|
}
|
229
|
+
if (this.pendingAsyncWrites.size > 0) {
|
230
|
+
this.logger.info("Waiting for pending buffer flushes to finish");
|
231
|
+
await Promise.allSettled(this.pendingAsyncWrites.values());
|
232
|
+
}
|
199
233
|
clearInterval(this.flushBufferID);
|
200
234
|
await this.flushWorkflowStatusBuffer();
|
201
235
|
await this.systemDatabase.destroy();
|
@@ -226,31 +260,34 @@ class DBOSExecutor {
|
|
226
260
|
this.communicatorConfigMap.set(comm.name, params);
|
227
261
|
}
|
228
262
|
async workflow(wf, params, ...args) {
|
263
|
+
if (this.debugMode) {
|
264
|
+
return this.debugWorkflow(wf, params, undefined, undefined, ...args);
|
265
|
+
}
|
229
266
|
return this.internalWorkflow(wf, params, undefined, undefined, ...args);
|
230
267
|
}
|
231
268
|
// If callerUUID and functionID are set, it means the workflow is invoked from within a workflow.
|
232
269
|
async internalWorkflow(wf, params, callerUUID, callerFunctionID, ...args) {
|
233
270
|
const workflowUUID = params.workflowUUID ? params.workflowUUID : this.#generateUUID();
|
271
|
+
const presetUUID = params.workflowUUID ? true : false;
|
234
272
|
const wInfo = this.workflowInfoMap.get(wf.name);
|
235
273
|
if (wInfo === undefined) {
|
236
274
|
throw new error_1.DBOSNotRegisteredError(wf.name);
|
237
275
|
}
|
238
276
|
const wConfig = wInfo.config;
|
239
|
-
const wCtxt = new workflow_1.WorkflowContextImpl(this, params.parentCtx, workflowUUID, wConfig, wf.name);
|
277
|
+
const wCtxt = new workflow_1.WorkflowContextImpl(this, params.parentCtx, workflowUUID, wConfig, wf.name, presetUUID);
|
240
278
|
wCtxt.span.setAttributes({ args: JSON.stringify(args) }); // TODO enforce skipLogging & request for hashing
|
241
|
-
// Synchronously set the workflow's status to PENDING and record workflow inputs.
|
279
|
+
// Synchronously set the workflow's status to PENDING and record workflow inputs.
|
242
280
|
if (!wCtxt.isTempWorkflow) {
|
243
281
|
args = await this.systemDatabase.initWorkflowStatus(workflowUUID, wf.name, wCtxt.authenticatedUser, wCtxt.assumedRole, wCtxt.authenticatedRoles, wCtxt.request, args);
|
244
282
|
}
|
283
|
+
else {
|
284
|
+
// For temporary workflows, instead asynchronously record inputs.
|
285
|
+
const setWorkflowInputs = this.systemDatabase.setWorkflowInputs(workflowUUID, args)
|
286
|
+
.catch(error => { this.logger.error('Error asynchronously setting workflow inputs', error); })
|
287
|
+
.finally(() => { this.pendingAsyncWrites.delete(workflowUUID); });
|
288
|
+
this.pendingAsyncWrites.set(workflowUUID, setWorkflowInputs);
|
289
|
+
}
|
245
290
|
const runWorkflow = async () => {
|
246
|
-
// Check if the workflow previously ran.
|
247
|
-
const previousOutput = await this.systemDatabase.checkWorkflowOutput(workflowUUID);
|
248
|
-
if (previousOutput !== exports.dbosNull) {
|
249
|
-
wCtxt.span.setAttribute("cached", true);
|
250
|
-
wCtxt.span.setStatus({ code: api_1.SpanStatusCode.OK });
|
251
|
-
this.tracer.endSpan(wCtxt.span);
|
252
|
-
return previousOutput;
|
253
|
-
}
|
254
291
|
let result;
|
255
292
|
// Execute the workflow.
|
256
293
|
try {
|
@@ -279,6 +316,15 @@ class DBOSExecutor {
|
|
279
316
|
finally {
|
280
317
|
this.tracer.endSpan(wCtxt.span);
|
281
318
|
}
|
319
|
+
// Asynchronously flush the result buffer.
|
320
|
+
const resultBufferFlush = this.userDatabase.transaction(async (client) => {
|
321
|
+
if (wCtxt.resultBuffer.size > 0) {
|
322
|
+
await wCtxt.flushResultBuffer(client);
|
323
|
+
}
|
324
|
+
}, { isolationLevel: transaction_1.IsolationLevel.ReadCommitted })
|
325
|
+
.catch(error => { this.logger.error('Error asynchronously flushing result buffer', error); })
|
326
|
+
.finally(() => { this.pendingAsyncWrites.delete(workflowUUID); });
|
327
|
+
this.pendingAsyncWrites.set(workflowUUID, resultBufferFlush);
|
282
328
|
return result;
|
283
329
|
};
|
284
330
|
const workflowPromise = runWorkflow();
|
@@ -295,6 +341,35 @@ class DBOSExecutor {
|
|
295
341
|
// Return the normal handle that doesn't capture errors.
|
296
342
|
return new workflow_1.InvokedHandle(this.systemDatabase, workflowPromise, workflowUUID, wf.name, callerUUID, callerFunctionID);
|
297
343
|
}
|
344
|
+
/**
|
345
|
+
* DEBUG MODE workflow execution, skipping all the recording
|
346
|
+
*/
|
347
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
348
|
+
async debugWorkflow(wf, params, callerUUID, callerFunctionID, ...args) {
|
349
|
+
// In debug mode, we must have a specific workflow UUID.
|
350
|
+
if (!params.workflowUUID) {
|
351
|
+
throw new error_1.DBOSDebuggerError("Workflow UUID not found!");
|
352
|
+
}
|
353
|
+
const workflowUUID = params.workflowUUID;
|
354
|
+
const wInfo = this.workflowInfoMap.get(wf.name);
|
355
|
+
if (wInfo === undefined) {
|
356
|
+
throw new error_1.DBOSDebuggerError("Workflow unregistered! " + wf.name);
|
357
|
+
}
|
358
|
+
const wConfig = wInfo.config;
|
359
|
+
const wCtxt = new debug_workflow_1.WorkflowContextDebug(this, params.parentCtx, workflowUUID, wConfig, wf.name);
|
360
|
+
// TODO: maybe also check the input args against the recorded ones.
|
361
|
+
const runWorkflow = async () => {
|
362
|
+
// A non-temp debug workflow must have run before.
|
363
|
+
const wfStatus = await this.systemDatabase.getWorkflowStatus(workflowUUID);
|
364
|
+
if (!wCtxt.isTempWorkflow && !wfStatus) {
|
365
|
+
throw new error_1.DBOSDebuggerError("Workflow status not found! UUID: " + workflowUUID);
|
366
|
+
}
|
367
|
+
// Execute the workflow. We don't need to record anything.
|
368
|
+
return wf(wCtxt, ...args);
|
369
|
+
};
|
370
|
+
const workflowPromise = runWorkflow();
|
371
|
+
return new workflow_1.InvokedHandle(this.systemDatabase, workflowPromise, workflowUUID, wf.name, callerUUID, callerFunctionID);
|
372
|
+
}
|
298
373
|
async transaction(txn, params, ...args) {
|
299
374
|
// Create a workflow and call transaction.
|
300
375
|
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,mCAKiB;AACjB,yCAUoB;AAIpB,qDAAuD;AACvD,qDAA2D;AAC3D,+CAA4C;AAC5C,2CAA+E;AAG/E,uDAA2E;AAC3E,+BAAoC;AACpC,mDAOyB;AACz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AAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;iBACtE;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AAzeH,oCA0eC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";AAkBA,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";AAkBA,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
@@ -31,6 +31,7 @@ program
|
|
31
31
|
.option('-l, --loglevel <string>', 'Specify log level')
|
32
32
|
.option('-c, --configfile <string>', 'Specify the config file path', config_1.dbosConfigFilePath)
|
33
33
|
.option('-e, --entrypoint <string>', 'Specify the entrypoint file path')
|
34
|
+
.option('-d, --debug <string>', 'Specify the debugger proxy URL')
|
34
35
|
.action(async (options) => {
|
35
36
|
const [dbosConfig, runtimeConfig] = (0, config_1.parseConfigFile)(options);
|
36
37
|
const runtime = new runtime_1.DBOSRuntime(dbosConfig, runtimeConfig);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";;;;;;AAEA,qCAA+D;AAC/D,uCAA2D;AAC3D,yCAAoC;AAEpC,iCAA8B;AAC9B,uCAA4C;AAC5C,gD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MAAM,EAAE,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IACF,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B,WAAW,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAElC,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB;AAcD,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAa7E;AAMD,wBAAgB,eAAe,CAAC,UAAU,CAAC,EAAE,mBAAmB,GAAG,CAAC,UAAU,EAAE,iBAAiB,CAAC,CA2EjG"}
|
@@ -97,6 +97,7 @@ function parseConfigFile(cliOptions) {
|
|
97
97
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
98
98
|
entities: configFile.dbClientMetadata?.entities,
|
99
99
|
},
|
100
|
+
debugProxy: cliOptions?.debug || undefined,
|
100
101
|
};
|
101
102
|
/*************************************/
|
102
103
|
/* Build final runtime Configuration */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dbos-runtime/config.ts"],"names":[],"mappings":";;;;;;AAAA,oCAAmD;AACnD,oCAAwC;AAGxC,gDAAwB;AAExB,oDAAoD;AAGpD,6DAA6D;AAEhD,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dbos-runtime/config.ts"],"names":[],"mappings":";;;;;;AAAA,oCAAmD;AACnD,oCAAwC;AAGxC,gDAAwB;AAExB,oDAAoD;AAGpD,6DAA6D;AAEhD,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AA4BrD;;;;EAIE;AACF,SAAS,iBAAiB,CAAC,OAAe;IACxC,MAAM,KAAK,GAAG,cAAc,CAAC,CAAE,gDAAgD;IAC/E,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,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,SAAS,EAAE,UAAU,CAAC,SAAS,IAAI,SAAS;QAC5C,eAAe,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe,IAAI,eAAe;QACvE,sBAAsB,EAAE,UAAU,CAAC,QAAQ,CAAC,sBAAsB,IAAI,SAAS;QAC/E,mEAAmE;QACnE,WAAW,EAAE,UAAU,CAAC,WAAW,IAAI,SAAS;QAChD,gBAAgB,EAAE;YAChB,+GAA+G;YAC/G,QAAQ,EAAE,UAAU,CAAC,gBAAgB,EAAE,QAAQ;SAChD;QACD,UAAU,EAAE,UAAU,EAAE,KAAK,IAAI,SAAS;KAC3C,CAAC;IAEF,uCAAuC;IACvC,uCAAuC;IACvC,uCAAuC;IACvC,MAAM,aAAa,GAAsB;QACvC,UAAU,EAAE,UAAU,EAAE,UAAU,IAAI,UAAU,CAAC,aAAa,EAAE,UAAU,IAAI,oBAAoB;QAClG,IAAI,EAAE,UAAU,EAAE,IAAI,IAAI,UAAU,CAAC,aAAa,EAAE,IAAI,IAAI,IAAI;KACjE,CAAC;IAEF,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AACrC,CAAC;AA3ED,0CA2EC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAa5D,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,WAAW;IAIc,OAAO,CAAC,QAAQ,CAAC,aAAa;IAHlE,OAAO,CAAC,
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAa5D,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,WAAW;IAIc,OAAO,CAAC,QAAQ,CAAC,aAAa;IAHlE,OAAO,CAAC,QAAQ,CAAe;IAC/B,OAAO,CAAC,MAAM,CAAuB;gBAEzB,UAAU,EAAE,UAAU,EAAmB,aAAa,EAAE,iBAAiB;IAKrF;;OAEG;IACG,IAAI;IAkBV;;OAEG;IACH,OAAO,CAAC,aAAa;IAYrB;;OAEG;IACH,WAAW;IASX;;OAEG;IACG,OAAO;CAId"}
|
@@ -35,12 +35,12 @@ const error_1 = require("../error");
|
|
35
35
|
const node_path_1 = __importDefault(require("node:path"));
|
36
36
|
class DBOSRuntime {
|
37
37
|
runtimeConfig;
|
38
|
-
|
38
|
+
dbosExec;
|
39
39
|
server = null;
|
40
40
|
constructor(dbosConfig, runtimeConfig) {
|
41
41
|
this.runtimeConfig = runtimeConfig;
|
42
42
|
// Initialize workflow executor.
|
43
|
-
this.
|
43
|
+
this.dbosExec = new dbos_executor_1.DBOSExecutor(dbosConfig);
|
44
44
|
}
|
45
45
|
/**
|
46
46
|
* Initialize the runtime by loading user functions and initializing the workflow executor object
|
@@ -48,17 +48,17 @@ class DBOSRuntime {
|
|
48
48
|
async init() {
|
49
49
|
const exports = await this.loadFunctions();
|
50
50
|
if (exports === null) {
|
51
|
-
this.
|
51
|
+
this.dbosExec.logger.error("operations not found");
|
52
52
|
throw new error_1.DBOSError("operations not found");
|
53
53
|
}
|
54
54
|
const classes = [];
|
55
55
|
for (const key in exports) {
|
56
56
|
if ((0, lodash_1.isObject)(exports[key])) {
|
57
57
|
classes.push(exports[key]);
|
58
|
-
this.
|
58
|
+
this.dbosExec.logger.debug(`Loaded class: ${key}`);
|
59
59
|
}
|
60
60
|
}
|
61
|
-
await this.
|
61
|
+
await this.dbosExec.init(...classes);
|
62
62
|
}
|
63
63
|
/**
|
64
64
|
* Load an application's workflow functions, assumed to be in src/operations.ts (which is compiled to dist/operations.js).
|
@@ -71,7 +71,7 @@ class DBOSRuntime {
|
|
71
71
|
return Promise.resolve(`${operations}`).then(s => __importStar(require(s)));
|
72
72
|
}
|
73
73
|
else {
|
74
|
-
this.
|
74
|
+
this.dbosExec.logger.warn(`${entrypoint} not found`);
|
75
75
|
return null;
|
76
76
|
}
|
77
77
|
}
|
@@ -80,16 +80,16 @@ class DBOSRuntime {
|
|
80
80
|
*/
|
81
81
|
startServer() {
|
82
82
|
// CLI takes precedence over config file, which takes precedence over default config.
|
83
|
-
const server = new server_1.DBOSHttpServer(this.
|
83
|
+
const server = new server_1.DBOSHttpServer(this.dbosExec);
|
84
84
|
this.server = server.listen(this.runtimeConfig.port);
|
85
|
-
this.
|
85
|
+
this.dbosExec.logRegisteredHTTPUrls();
|
86
86
|
}
|
87
87
|
/**
|
88
88
|
* Shut down the HTTP server and destroy workflow executor.
|
89
89
|
*/
|
90
90
|
async destroy() {
|
91
91
|
this.server?.close();
|
92
|
-
await this.
|
92
|
+
await this.dbosExec?.destroy();
|
93
93
|
}
|
94
94
|
}
|
95
95
|
exports.DBOSRuntime = DBOSRuntime;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/dbos-runtime/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4D;AAC5D,iDAAsD;AACtD,uCAAyB;AACzB,mCAAkC;AAElC,oCAAqC;AACrC,0DAA6B;AAY7B,MAAa,WAAW;IAI+B;IAH7C,
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/dbos-runtime/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4D;AAC5D,iDAAsD;AACtD,uCAAyB;AACzB,mCAAkC;AAElC,oCAAqC;AACrC,0DAA6B;AAY7B,MAAa,WAAW;IAI+B;IAH7C,QAAQ,CAAe;IACvB,MAAM,GAAkB,IAAI,CAAC;IAErC,YAAY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AM,CAAC,IAAI,CAAC,GAAG,UAAU,YAAY,CAAC,CAAC;YACrD,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED;;OAEG;IACH,WAAW;QACT,qFAAqF;QAErF,MAAM,MAAM,GAAmB,IAAI,uBAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAEhE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;QACrB,MAAM,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACjC,CAAC;CACF;AAhED,kCAgEC"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { DBOSExecutor } from "../dbos-executor";
|
2
|
+
import { Transaction } from "../transaction";
|
3
|
+
import { Communicator } from "../communicator";
|
4
|
+
import { UserDatabaseClient } from "../user_database";
|
5
|
+
import { DBOSContextImpl } from "../context";
|
6
|
+
import { WFInvokeFuncs, Workflow, WorkflowConfig, WorkflowContext, WorkflowHandle } from "../workflow";
|
7
|
+
interface RecordedResult<R> {
|
8
|
+
output: R;
|
9
|
+
txn_snapshot: string;
|
10
|
+
txn_id: string;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* Context used for debugging a workflow
|
14
|
+
*/
|
15
|
+
export declare class WorkflowContextDebug extends DBOSContextImpl implements WorkflowContext {
|
16
|
+
#private;
|
17
|
+
readonly workflowConfig: WorkflowConfig;
|
18
|
+
functionID: number;
|
19
|
+
readonly isTempWorkflow: boolean;
|
20
|
+
constructor(dbosExec: DBOSExecutor, parentCtx: DBOSContextImpl | undefined, workflowUUID: string, workflowConfig: WorkflowConfig, workflowName: string);
|
21
|
+
functionIDGetIncrement(): number;
|
22
|
+
invoke<T extends object>(object: T): WFInvokeFuncs<T>;
|
23
|
+
checkExecution<R>(client: UserDatabaseClient, funcID: number): Promise<RecordedResult<R>>;
|
24
|
+
/**
|
25
|
+
* Execute a transactional function in debug mode.
|
26
|
+
* It connects to a debug proxy and everything should be read-only.
|
27
|
+
*/
|
28
|
+
transaction<T extends any[], R>(txn: Transaction<T, R>, ...args: T): Promise<R>;
|
29
|
+
external<T extends any[], R>(commFn: Communicator<T, R>, ..._args: T): Promise<R>;
|
30
|
+
childWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
|
31
|
+
send<T extends NonNullable<any>>(_destinationUUID: string, _message: T, _topic?: string | undefined): Promise<void>;
|
32
|
+
recv<T extends NonNullable<any>>(_topic?: string | undefined, _timeoutSeconds?: number | undefined): Promise<T | null>;
|
33
|
+
setEvent<T extends NonNullable<any>>(_key: string, _value: T): Promise<void>;
|
34
|
+
getEvent<T extends NonNullable<any>>(_workflowUUID: string, _key: string, _timeoutSeconds?: number | undefined): Promise<T | null>;
|
35
|
+
retrieveWorkflow<R>(targetUUID: string): WorkflowHandle<R>;
|
36
|
+
}
|
37
|
+
export {};
|
38
|
+
//# sourceMappingURL=debug_workflow.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"debug_workflow.d.ts","sourceRoot":"","sources":["../../../src/debugger/debug_workflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,kBAAkB,CAAC;AAEpE,OAAO,EAAE,WAAW,EAA0B,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAkB,MAAM,aAAa,CAAC;AAEvH,U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