@dbos-inc/dbos-sdk 0.7.21-preview → 0.7.25-preview
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/context.d.ts +1 -0
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/context.js.map +1 -1
- package/dist/src/dbos-executor.d.ts +6 -1
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +83 -24
- 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.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/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 +121 -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 +1 -0
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +13 -1
- package/dist/src/httpServer/handler.js.map +1 -1
- package/dist/src/httpServer/server.d.ts.map +1 -1
- package/dist/src/httpServer/server.js +2 -0
- package/dist/src/httpServer/server.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/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 +1 -1
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +2 -3
- package/dist/src/workflow.js.map +1 -1
- 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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deploy-app-code.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/deploy-app-code.ts"],"names":[],"mappings":"AAWA,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,
|
1
|
+
{"version":3,"file":"deploy-app-code.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/deploy-app-code.ts"],"names":[],"mappings":"AAWA,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqDhG"}
|
@@ -34,6 +34,7 @@ async function deployAppCode(appName, host, port) {
|
|
34
34
|
logger.error(`failed to write ${config_1.dbosConfigFilePath}: ${e.message}`);
|
35
35
|
return 1;
|
36
36
|
}
|
37
|
+
(0, child_process_1.execSync)(`npm prune --production node_modules/* `);
|
37
38
|
(0, child_process_1.execSync)(`zip -ry ${deployDirectoryName}/${appName}.zip ./* -x ${deployDirectoryName}/* ${config_1.dbosConfigFilePath} > /dev/null`);
|
38
39
|
(0, child_process_1.execSync)(`zip -j ${deployDirectoryName}/${appName}.zip ${deployDirectoryName}/${config_1.dbosConfigFilePath} > /dev/null`);
|
39
40
|
const zipData = (0, utils_2.readFileSync)(`${deployDirectoryName}/${appName}.zip`, "base64");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deploy-app-code.js","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/deploy-app-code.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,gDAAwB;AACxB,iDAAyC;AACzC,4CAAoB;AACpB,+CAA0D;AAC1D,oCAA+C;AAC/C,uCAA4D;AAC5D,sDAA2F;AAE3F,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAEnC,KAAK,UAAU,aAAa,CAAC,OAAe,EAAE,IAAY,EAAE,IAAY;IAC7E,MAAM,MAAM,GAAG,IAAA,yBAAkB,GAAE,CAAC;IACpC,MAAM,eAAe,GAAG,IAAA,2BAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,IAAI;QACF,IAAA,uBAAe,EAAC,mBAAmB,CAAC,CAAC;QAErC,MAAM,UAAU,GAA2B,IAAA,uBAAc,EAAC,2BAAkB,CAAC,CAAC;QAC9E,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,CAAC,KAAK,CAAC,mBAAmB,2BAAkB,EAAE,CAAC,CAAC;YACtD,OAAO,CAAC,CAAC;SACV;QAED,gEAAgE;QAChE,MAAM,OAAO,GAAW,UAAU,CAAC,OAAO,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;QACpE,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;QAE7B,IAAI;YACF,YAAE,CAAC,aAAa,CAAC,GAAG,mBAAmB,IAAI,2BAAkB,EAAE,EAAE,cAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;SAC9F;QAAC,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SAAS,CAAC,EAAE,eAAe;IAW5G,mCAAmC;IAEnC,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IACxC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,CAAC;CAmB9C;AAGD;;GAEG;AACH,qBAAa,WAAW;IASV,QAAQ,CAAC,GAAG,EAAE,YAAY;IAPtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAGxB,OAAO,CAAC,YAAY,CAAe;IAEnC,OAAO,CAAC,WAAW,CAAM;gBAEJ,GAAG,EAAE,YAAY;IAOtC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAK/D,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IACxC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,CAAC;CAmB9C"}
|
package/dist/src/context.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":";;;AACA,2CAAiF;AACjF,mCAAkC;AAKlC,mCAAiD;
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":";;;AACA,2CAAiF;AACjF,mCAAkC;AAKlC,mCAAiD;AA8BjD,MAAa,eAAe;IAQL;IAAgC;IAPrD,OAAO,GAAgB,EAAE,CAAC,CAAU,6BAA6B;IACjE,iBAAiB,GAAW,EAAE,CAAC,CAAK,uCAAuC;IAC3E,kBA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AC,GAAG,EAAE,OAAO,YAAY,EAAE,OAAO,KAAK,CAAC,CAAC;SAC1E;QAED,OAAO,KAAU,CAAC;IACpB,CAAC;CACF;AAjDD,kCAiDC"}
|
@@ -21,6 +21,7 @@ export interface DBOSConfig {
|
|
21
21
|
readonly observability_database?: string;
|
22
22
|
readonly application?: any;
|
23
23
|
readonly dbClientMetadata?: any;
|
24
|
+
readonly debugProxy?: string;
|
24
25
|
}
|
25
26
|
interface WorkflowInfo<T extends any[], R> {
|
26
27
|
workflow: Workflow<T, R>;
|
@@ -36,13 +37,13 @@ export declare class DBOSExecutor {
|
|
36
37
|
readonly workflowInfoMap: Map<string, WorkflowInfo<any, any>>;
|
37
38
|
readonly transactionConfigMap: Map<string, TransactionConfig>;
|
38
39
|
readonly communicatorConfigMap: Map<string, CommunicatorConfig>;
|
39
|
-
readonly topicConfigMap: Map<string, string[]>;
|
40
40
|
readonly registeredOperations: Array<MethodRegistrationBase>;
|
41
41
|
readonly pendingWorkflowMap: Map<string, Promise<unknown>>;
|
42
42
|
readonly telemetryCollector: TelemetryCollector;
|
43
43
|
readonly flushBufferIntervalMs: number;
|
44
44
|
readonly flushBufferID: NodeJS.Timeout;
|
45
45
|
static readonly defaultNotificationTimeoutSec = 60;
|
46
|
+
readonly debugMode: boolean;
|
46
47
|
readonly logger: Logger;
|
47
48
|
readonly tracer: Tracer;
|
48
49
|
entities: Function[];
|
@@ -52,6 +53,10 @@ export declare class DBOSExecutor {
|
|
52
53
|
destroy(): Promise<void>;
|
53
54
|
workflow<T extends any[], R>(wf: Workflow<T, R>, params: WorkflowParams, ...args: T): Promise<WorkflowHandle<R>>;
|
54
55
|
internalWorkflow<T extends any[], R>(wf: Workflow<T, R>, params: WorkflowParams, callerUUID?: string, callerFunctionID?: number, ...args: T): Promise<WorkflowHandle<R>>;
|
56
|
+
/**
|
57
|
+
* DEBUG MODE workflow execution, skipping all the recording
|
58
|
+
*/
|
59
|
+
debugWorkflow<T extends any[], R>(wf: Workflow<T, R>, params: WorkflowParams, callerUUID?: string, callerFunctionID?: number, ...args: T): Promise<WorkflowHandle<R>>;
|
55
60
|
transaction<T extends any[], R>(txn: Transaction<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
|
56
61
|
external<T extends any[], R>(commFn: Communicator<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
|
57
62
|
send<T extends NonNullable<any>>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dbos-executor.d.ts","sourceRoot":"","sources":["../../src/dbos-executor.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"dbos-executor.d.ts","sourceRoot":"","sources":["../../src/dbos-executor.ts"],"names":[],"mappings":";AAQA,OAAO,EAEL,QAAQ,EACR,cAAc,EAEd,cAAc,EACd,cAAc,EAIf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAsB,aAAa,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,cAAc,EAA0B,MAAM,mBAAmB,CAAC;AAE3E,OAAO,EAGL,YAAY,EAEZ,gBAAgB,EAEjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAA6E,MAAM,cAAc,CAAC;AAOjI,MAAM,WAAW,QAAQ;CAAI;AAC7B,eAAO,MAAM,QAAQ,EAAE,QAAa,CAAC;AAGrC,MAAM,WAAW,UAAU;IACzB,QAA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Ac,CAAC,CAAC,CAAC,CAAC;IA+BrK,WAAW,CAAC,CAAC,SAAS,GAAG,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IASvG,QAAQ,CAAC,CAAC,SAAS,GAAG,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IASxG,IAAI,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IASnI;;OAEG;IACG,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,GAAE,MAAmD,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAIrK;;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,GAAG,CAAC,EAAE,CAAC;IA4ChG;;OAEG;IACG,yBAAyB;IAM/B,qBAAqB;CAatB"}
|
@@ -18,6 +18,7 @@ const decorators_1 = require("./decorators");
|
|
18
18
|
const api_1 = require("@opentelemetry/api");
|
19
19
|
const knex_1 = __importDefault(require("knex"));
|
20
20
|
const context_1 = require("./context");
|
21
|
+
const debug_workflow_1 = require("./debugger/debug_workflow");
|
21
22
|
exports.dbosNull = {};
|
22
23
|
class DBOSExecutor {
|
23
24
|
config;
|
@@ -41,13 +42,13 @@ class DBOSExecutor {
|
|
41
42
|
]);
|
42
43
|
transactionConfigMap = new Map();
|
43
44
|
communicatorConfigMap = new Map();
|
44
|
-
topicConfigMap = new Map();
|
45
45
|
registeredOperations = [];
|
46
46
|
pendingWorkflowMap = new Map(); // Map from workflowUUID to workflow promise.
|
47
47
|
telemetryCollector;
|
48
48
|
flushBufferIntervalMs = 1000;
|
49
49
|
flushBufferID;
|
50
50
|
static defaultNotificationTimeoutSec = 60;
|
51
|
+
debugMode;
|
51
52
|
logger;
|
52
53
|
tracer;
|
53
54
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
@@ -55,7 +56,11 @@ class DBOSExecutor {
|
|
55
56
|
/* WORKFLOW EXECUTOR LIFE CYCLE MANAGEMENT */
|
56
57
|
constructor(config, systemDatabase) {
|
57
58
|
this.config = config;
|
59
|
+
this.debugMode = config.debugProxy ? true : false;
|
58
60
|
this.logger = (0, logs_1.createGlobalLogger)(this.config.telemetry?.logs);
|
61
|
+
if (this.debugMode) {
|
62
|
+
this.logger.info("Running in debug mode!");
|
63
|
+
}
|
59
64
|
if (systemDatabase) {
|
60
65
|
this.logger.debug("Using provided system database"); // XXX print the name or something
|
61
66
|
this.systemDatabase = systemDatabase;
|
@@ -65,12 +70,14 @@ class DBOSExecutor {
|
|
65
70
|
this.systemDatabase = new system_database_1.PostgresSystemDatabase(this.config.poolConfig, this.config.system_database, this.logger);
|
66
71
|
}
|
67
72
|
this.flushBufferID = setInterval(() => {
|
68
|
-
|
73
|
+
if (!this.debugMode) {
|
74
|
+
void this.flushWorkflowStatusBuffer();
|
75
|
+
}
|
69
76
|
}, this.flushBufferIntervalMs);
|
70
77
|
this.logger.debug("Started workflow status buffer worker");
|
71
78
|
// Add Jaeger exporter if tracing is enabled
|
72
79
|
const telemetryExporters = [];
|
73
|
-
if (this.config.telemetry?.traces?.enabled) {
|
80
|
+
if (this.config.telemetry?.traces?.enabled && !this.debugMode) {
|
74
81
|
telemetryExporters.push(new exporters_1.JaegerExporter(this.config.telemetry?.traces?.endpoint));
|
75
82
|
this.logger.debug("Loaded Jaeger Telemetry Exporter");
|
76
83
|
}
|
@@ -80,7 +87,21 @@ class DBOSExecutor {
|
|
80
87
|
}
|
81
88
|
configureDbClient() {
|
82
89
|
const userDbClient = this.config.userDbclient;
|
90
|
+
const userDBConfig = JSON.parse(JSON.stringify(this.config.poolConfig)); // Deep copy
|
91
|
+
if (this.debugMode) {
|
92
|
+
try {
|
93
|
+
const url = new URL(this.config.debugProxy);
|
94
|
+
userDBConfig.host = url.hostname;
|
95
|
+
userDBConfig.port = parseInt(url.port, 10);
|
96
|
+
this.logger.info(`Debugging mode proxy: ${userDBConfig.host}:${userDBConfig.port}`);
|
97
|
+
}
|
98
|
+
catch (err) {
|
99
|
+
this.logger.error(err);
|
100
|
+
return;
|
101
|
+
}
|
102
|
+
}
|
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,9 +191,13 @@ 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) {
|
@@ -180,13 +205,15 @@ class DBOSExecutor {
|
|
180
205
|
throw new error_1.DBOSInitializationError(err.message);
|
181
206
|
}
|
182
207
|
}
|
183
|
-
await this.recoverPendingWorkflows();
|
184
208
|
this.initialized = true;
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
209
|
+
// Only execute init code if under non-debug mode
|
210
|
+
if (!this.debugMode) {
|
211
|
+
for (const v of this.registeredOperations) {
|
212
|
+
const m = v;
|
213
|
+
if (m.init === true) {
|
214
|
+
this.logger.debug("Executing init method: " + m.name);
|
215
|
+
await m.origFunction(new context_1.InitContext(this));
|
216
|
+
}
|
190
217
|
}
|
191
218
|
}
|
192
219
|
this.logger.info("Workflow executor initialized");
|
@@ -226,6 +253,9 @@ class DBOSExecutor {
|
|
226
253
|
this.communicatorConfigMap.set(comm.name, params);
|
227
254
|
}
|
228
255
|
async workflow(wf, params, ...args) {
|
256
|
+
if (this.debugMode) {
|
257
|
+
return this.debugWorkflow(wf, params, undefined, undefined, ...args);
|
258
|
+
}
|
229
259
|
return this.internalWorkflow(wf, params, undefined, undefined, ...args);
|
230
260
|
}
|
231
261
|
// If callerUUID and functionID are set, it means the workflow is invoked from within a workflow.
|
@@ -295,6 +325,35 @@ class DBOSExecutor {
|
|
295
325
|
// Return the normal handle that doesn't capture errors.
|
296
326
|
return new workflow_1.InvokedHandle(this.systemDatabase, workflowPromise, workflowUUID, wf.name, callerUUID, callerFunctionID);
|
297
327
|
}
|
328
|
+
/**
|
329
|
+
* DEBUG MODE workflow execution, skipping all the recording
|
330
|
+
*/
|
331
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
332
|
+
async debugWorkflow(wf, params, callerUUID, callerFunctionID, ...args) {
|
333
|
+
// In debug mode, we must have a specific workflow UUID.
|
334
|
+
if (!params.workflowUUID) {
|
335
|
+
throw new error_1.DBOSDebuggerError("Workflow UUID not found!");
|
336
|
+
}
|
337
|
+
const workflowUUID = params.workflowUUID;
|
338
|
+
const wInfo = this.workflowInfoMap.get(wf.name);
|
339
|
+
if (wInfo === undefined) {
|
340
|
+
throw new error_1.DBOSDebuggerError("Workflow unregistered! " + wf.name);
|
341
|
+
}
|
342
|
+
const wConfig = wInfo.config;
|
343
|
+
const wCtxt = new debug_workflow_1.WorkflowContextDebug(this, params.parentCtx, workflowUUID, wConfig, wf.name);
|
344
|
+
// TODO: maybe also check the input args against the recorded ones.
|
345
|
+
const runWorkflow = async () => {
|
346
|
+
// A non-temp debug workflow must have run before.
|
347
|
+
const wfStatus = await this.systemDatabase.getWorkflowStatus(workflowUUID);
|
348
|
+
if (!wCtxt.isTempWorkflow && !wfStatus) {
|
349
|
+
throw new error_1.DBOSDebuggerError("Workflow status not found! UUID: " + workflowUUID);
|
350
|
+
}
|
351
|
+
// Execute the workflow. We don't need to record anything.
|
352
|
+
return wf(wCtxt, ...args);
|
353
|
+
};
|
354
|
+
const workflowPromise = runWorkflow();
|
355
|
+
return new workflow_1.InvokedHandle(this.systemDatabase, workflowPromise, workflowUUID, wf.name, callerUUID, callerFunctionID);
|
356
|
+
}
|
298
357
|
async transaction(txn, params, ...args) {
|
299
358
|
// Create a workflow and call transaction.
|
300
359
|
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;AACzB,6CAAiI;AACjI,4CAAoD;AACpD,gDAAkC;AAClC,uCAAyD;AAI5C,QAAA,QAAQ,GAAa,EAAE,CAAC;AAkBrC,MAAa,YAAY;IAuCF;IAtCrB,WAAW,CAAU;IACrB,gBAAgB;IAChB,YAAY,GAAiB,IAA+B,CAAC;IAC7D,kBAAkB;IACT,cAAc,CAAiB;IAExC,oGAAoG;IAC3F,gBAAgB,GAAG,eAAe,CAAC;IAEnC,eAAe,GAAwC,IAAI,GAAG,CAAC;QACtE,+DAA+D;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../../../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,gDAAwB;AACxB,gEAAkC;AAClC,0DAA6B;AAE7B,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";;;;;;AAEA,qCAA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EAAE,MAAM,CAAC;QAChB,sBAAsB,EAAE,MAAM,CAAC;QAE/B,aAAa,CAAC,EAAE,gBAAgB,CAAC;KAClC,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;AAyBrD;;;;EAIE;AACF,SAAS,iBAAiB,CAAC,OAAe;IACxC,MAAM,KAAK,GAAG,cAAc,CAAC,CAAE,gDAAgD;IAC/E,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAU,EAAE,EAAE;QAC5C,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAE,0DAA0D;IAC7F,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,cAAc,CAAC,c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"}
|
@@ -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(wfe: 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>(workflowUUID: 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":"AAEA,OAAO,EAAE,YAAY,EAAsB,MAAM,kBAAkB,CAAC;AAEpE,OAAO,EAAkB,WAAW,EAA8C,MAAM,gBAAgB,CAAC;AACzG,OAAO,EAAE,YAAY,EAAgD,MAAM,iBAAiB,CAAC;AAI7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,EAA4B,eAAe,EAAE,MAAM,YAAY,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEvG,UAAU,cAAc,CAAC,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC;IACV,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,eAAgB,YAAW,eAAe;;IAKW,QAAQ,CAAC,cAAc,EAAE,cAAc;IAJpI,UAAU,EAAE,MAAM,CAAK;IAEvB,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;gBAErB,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,GAAG,SAAS,EAAE,YAAY,EAAE,MAAM,EAAW,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM;IAY1J,sBAAsB,IAAI,MAAM;IAIhC,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC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