@dbos-inc/dbos-sdk 1.27.7 → 1.28.7-preview.gdb2d0f0508
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/dbos-executor.d.ts +3 -0
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +9 -0
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
- package/dist/src/dbos-runtime/runtime.js.map +1 -1
- package/dist/src/httpServer/server.d.ts +7 -0
- package/dist/src/httpServer/server.d.ts.map +1 -1
- package/dist/src/httpServer/server.js +18 -1
- package/dist/src/httpServer/server.js.map +1 -1
- package/dist/src/kafka/kafka.d.ts +2 -1
- package/dist/src/kafka/kafka.d.ts.map +1 -1
- package/dist/src/kafka/kafka.js +3 -2
- package/dist/src/kafka/kafka.js.map +1 -1
- package/dist/src/scheduler/scheduler.d.ts +3 -1
- package/dist/src/scheduler/scheduler.d.ts.map +1 -1
- package/dist/src/scheduler/scheduler.js +7 -3
- package/dist/src/scheduler/scheduler.js.map +1 -1
- package/dist/src/testing/testing_runtime.d.ts +6 -2
- package/dist/src/testing/testing_runtime.d.ts.map +1 -1
- package/dist/src/testing/testing_runtime.js +17 -14
- package/dist/src/testing/testing_runtime.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scheduler.js","sourceRoot":"","sources":["../../../src/scheduler/scheduler.ts"],"names":[],"mappings":";;;AAEA,8CAAgF;AAChF,uCAAwC;AAGxC,IAAI;AACJ,gBAAgB;AAChB,IAAI;AAEJ,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,kEAAiD,CAAA;IACjD,sFAAqE,CAAA;AACzE,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,eAAe;IACxB,OAAO,GAAW,WAAW,CAAC,CAAC,eAAe;IAC9C,IAAI,GAAoB,aAAa,CAAC,gCAAgC,CAAC;
|
1
|
+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C,CAAC;YAC5E,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;QACjC,CAAC;IACL,CAAC;IAED,eAAe;QACX,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO;QAC5B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACxB,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,2BAA2B;QACxD,CAAC;IACL,CAAC;CACJ"}
|
@@ -6,7 +6,7 @@ import { HTTPRequest } from "../context";
|
|
6
6
|
import { ConfiguredInstance } from "../decorators";
|
7
7
|
import { AsyncHandlerWfFuncs, AsyncHandlerWfFuncInst, InvokeFuncs, InvokeFuncsInst, SyncHandlerWfFuncs, SyncHandlerWfFuncsInst } from "../httpServer/handler";
|
8
8
|
import { DBOSExecutor, DBOSConfig } from "../dbos-executor";
|
9
|
-
import { WorkflowHandle } from "../workflow";
|
9
|
+
import { GetWorkflowsInput, GetWorkflowsOutput, WorkflowHandle } from "../workflow";
|
10
10
|
import { Http2ServerRequest, Http2ServerResponse } from "http2";
|
11
11
|
import { ServerResponse } from "http";
|
12
12
|
import { SystemDatabase } from "../system_database";
|
@@ -28,6 +28,7 @@ export interface TestingRuntime {
|
|
28
28
|
startWorkflow<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string, params?: WorkflowInvokeParams, queue?: WorkflowQueue): AsyncHandlerWfFuncInst<T>;
|
29
29
|
startWorkflow<T extends object>(targetClass: T, workflowUUID?: string, params?: WorkflowInvokeParams, queue?: WorkflowQueue): AsyncHandlerWfFuncs<T>;
|
30
30
|
retrieveWorkflow<R>(workflowUUID: string): WorkflowHandle<R>;
|
31
|
+
getWorkflows(input: GetWorkflowsInput): Promise<GetWorkflowsOutput>;
|
31
32
|
send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
|
32
33
|
getEvent<T>(workflowUUID: string, key: string, timeoutSeconds?: number): Promise<T | null>;
|
33
34
|
getHandlersCallback(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => Promise<void>;
|
@@ -39,6 +40,8 @@ export interface TestingRuntime {
|
|
39
40
|
createUserSchema(): Promise<void>;
|
40
41
|
dropUserSchema(): Promise<void>;
|
41
42
|
destroy(): Promise<void>;
|
43
|
+
deactivateEventReceivers(): Promise<void>;
|
44
|
+
initEventReceivers(): Promise<void>;
|
42
45
|
}
|
43
46
|
/**
|
44
47
|
* For internal unit tests which allows us to provide different system DB and control its behavior.
|
@@ -59,7 +62,7 @@ export declare class TestingRuntimeImpl implements TestingRuntime {
|
|
59
62
|
* Release resources after tests.
|
60
63
|
*/
|
61
64
|
destroy(): Promise<void>;
|
62
|
-
|
65
|
+
deactivateEventReceivers(): Promise<void>;
|
63
66
|
/**
|
64
67
|
* Get Application Configuration.
|
65
68
|
*/
|
@@ -82,6 +85,7 @@ export declare class TestingRuntimeImpl implements TestingRuntime {
|
|
82
85
|
send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
|
83
86
|
getEvent<T>(workflowUUID: string, key: string, timeoutSeconds?: number): Promise<T | null>;
|
84
87
|
retrieveWorkflow<R>(workflowUUID: string): WorkflowHandle<R>;
|
88
|
+
getWorkflows(input: GetWorkflowsInput): Promise<GetWorkflowsOutput>;
|
85
89
|
queryUserDB<R>(sql: string, ...params: any[]): Promise<R[]>;
|
86
90
|
createUserSchema(): Promise<void>;
|
87
91
|
dropUserSchema(): Promise<void>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"testing_runtime.d.ts","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAmB,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAA2B,MAAM,eAAe,CAAC;AAE5E,OAAO,EAAE,mBAAmB,EAAE,sBA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|
68
68
|
await this.initEventReceivers();
|
69
|
-
this.#scheduler = new scheduler_1.DBOSScheduler(this.#dbosExec);
|
70
|
-
this.#scheduler.initScheduler();
|
71
|
-
this.#wfQueueRunner = wfqueue_1.wfQueueRunner.dispatchLoop(this.#dbosExec);
|
72
69
|
this.#applicationConfig = this.#dbosExec.config.application ?? {};
|
73
70
|
this.#isInitialized = true;
|
74
71
|
}
|
@@ -76,6 +73,9 @@ class TestingRuntimeImpl {
|
|
76
73
|
for (const evtRcvr of this.#dbosExec.eventReceivers) {
|
77
74
|
await evtRcvr.initialize(this.#dbosExec);
|
78
75
|
}
|
76
|
+
this.#scheduler = new scheduler_1.DBOSScheduler(this.#dbosExec);
|
77
|
+
this.#scheduler.initScheduler();
|
78
|
+
this.#wfQueueRunner = wfqueue_1.wfQueueRunner.dispatchLoop(this.#dbosExec);
|
79
79
|
}
|
80
80
|
/**
|
81
81
|
* Release resources after tests.
|
@@ -83,24 +83,24 @@ class TestingRuntimeImpl {
|
|
83
83
|
async destroy() {
|
84
84
|
// Only release once.
|
85
85
|
if (this.#isInitialized) {
|
86
|
-
|
87
|
-
wfqueue_1.wfQueueRunner.stop();
|
88
|
-
await this.#wfQueueRunner;
|
89
|
-
}
|
90
|
-
catch (err) {
|
91
|
-
const e = err;
|
92
|
-
this.#server?.dbosExec?.logger.warn(`Error destroying workflow queue runner: ${e.message}`);
|
93
|
-
}
|
94
|
-
await this.#scheduler?.destroyScheduler();
|
95
|
-
await this.destroyEventReceivers();
|
86
|
+
await this.deactivateEventReceivers();
|
96
87
|
await this.#server?.dbosExec.destroy();
|
97
88
|
this.#isInitialized = false;
|
98
89
|
}
|
99
90
|
}
|
100
|
-
async
|
91
|
+
async deactivateEventReceivers() {
|
101
92
|
for (const evtRcvr of this.#server?.dbosExec?.eventReceivers || []) {
|
102
93
|
await evtRcvr.destroy();
|
103
94
|
}
|
95
|
+
await this.#scheduler?.destroyScheduler();
|
96
|
+
try {
|
97
|
+
wfqueue_1.wfQueueRunner.stop();
|
98
|
+
await this.#wfQueueRunner;
|
99
|
+
}
|
100
|
+
catch (err) {
|
101
|
+
const e = err;
|
102
|
+
this.#server?.dbosExec?.logger.warn(`Error destroying workflow queue runner: ${e.message}`);
|
103
|
+
}
|
104
104
|
}
|
105
105
|
getConfig(key, defaultValue) {
|
106
106
|
const value = (0, lodash_1.get)(this.#applicationConfig, key, defaultValue);
|
@@ -198,6 +198,9 @@ class TestingRuntimeImpl {
|
|
198
198
|
retrieveWorkflow(workflowUUID) {
|
199
199
|
return this.getDBOSExec().retrieveWorkflow(workflowUUID);
|
200
200
|
}
|
201
|
+
async getWorkflows(input) {
|
202
|
+
return await this.getDBOSExec().systemDatabase.getWorkflows(input);
|
203
|
+
}
|
201
204
|
async queryUserDB(sql, ...params) {
|
202
205
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
203
206
|
return this.getDBOSExec().userDatabase.query(sql, ...params);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"testing_runtime.js","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AAGA,wCAA0D;AAC1D,8CAA4E;AAC5E,oCAA6D;AAE7D,iDAAsD;AACtD,oDAA4D;AAC5D,mDAA6E;AAM7E,mCAAkC;AAClC,2BAA4B;AAC5B,sDAAuD;AAEvD,wCAA0D;AAC1D,qDAA+C;AAE/C;;GAEG;AACI,KAAK,UAAU,oBAAoB,CAAC,cAAoC,SAAS,EAAE,iBAAyB,2BAAkB,EAAE,YAAqB,IAAI;IAC9J,MAAM,CAAC,UAAU,CAAC,GAAG,IAAA,wBAAe,EAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC,CAAC;IAErE,IAAI,SAAS,EAAE,CAAC;QACd,gFAAgF;QAChF,MAAM,cAAc,GAAG,IAAI,WAAM,CAAC;YAChC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI;YAChC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI;YAChC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