@dbos-inc/dbos-sdk 1.12.6-preview → 1.12.7-preview
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/schemas/system_db_schema.d.ts +2 -0
- package/dist/schemas/system_db_schema.d.ts.map +1 -1
- package/dist/src/communicator.d.ts +1 -1
- package/dist/src/communicator.d.ts.map +1 -1
- package/dist/src/communicator.js.map +1 -1
- package/dist/src/dbos-executor.d.ts +27 -11
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +138 -45
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/debugger/debug_workflow.d.ts +14 -5
- package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
- package/dist/src/debugger/debug_workflow.js +74 -18
- package/dist/src/debugger/debug_workflow.js.map +1 -1
- package/dist/src/decorators.d.ts +19 -2
- package/dist/src/decorators.d.ts.map +1 -1
- package/dist/src/decorators.js +104 -27
- package/dist/src/decorators.js.map +1 -1
- package/dist/src/httpServer/handler.d.ts +19 -15
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +24 -22
- 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 +6 -1
- package/dist/src/httpServer/server.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/kafka/kafka.d.ts +2 -3
- package/dist/src/kafka/kafka.d.ts.map +1 -1
- package/dist/src/kafka/kafka.js +2 -13
- package/dist/src/kafka/kafka.js.map +1 -1
- package/dist/src/scheduler/scheduler.d.ts +4 -8
- package/dist/src/scheduler/scheduler.d.ts.map +1 -1
- package/dist/src/scheduler/scheduler.js +2 -9
- package/dist/src/scheduler/scheduler.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 +61 -4
- package/dist/src/system_database.js.map +1 -1
- package/dist/src/testing/testing_runtime.d.ts +9 -5
- package/dist/src/testing/testing_runtime.d.ts.map +1 -1
- package/dist/src/testing/testing_runtime.js +24 -12
- package/dist/src/testing/testing_runtime.js.map +1 -1
- package/dist/src/transaction.d.ts +1 -1
- package/dist/src/transaction.d.ts.map +1 -1
- package/dist/src/workflow.d.ts +46 -10
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +72 -20
- package/dist/src/workflow.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/migrations/20240517000000_status_class_config.js +18 -0
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,+CAAiC;AAKjC,mCAAiD;AACjD,uDAAuD;AAOvD,MAAa,YAAY;IACvB,QAAQ,GAAkB,MAAM,CAAC;IACjC,MAAM,GAAW,CAAC,CAAC,CAAC;IACpB,SAAS,GAAW,CAAC,CAAC,CAAC;IACvB,KAAK,GAAW,CAAC,CAAC,CAAC;IAEnB,yBAAyB;IACzB,MAAM,CAAC,OAAO,CAAC,MAAc;QAC3B,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE,CAAC;QAC9B,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC;QACxB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,gFAAgF;IAChF,MAAM,CAAC,OAAO,CAAC,SAAiB,EAAE,KAAa;QAC7C,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE,CAAC;QAC9B,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC;QACxB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;QAEjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,sCAAsC;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C;IACpB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAXD,0CAWC;AAED,6BAA6B;AAC7B,SAAgB,UAAU;IACxB,SAAS,SAAS,CAChB,MAAc,EACd,WAAmB,EACnB,YAAuG;QAEvG,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,uBAAuB,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAChG,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;QACzB,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAXD,gCAWC"}
|
@@ -1,22 +1,32 @@
|
|
1
|
-
import {
|
1
|
+
import { MethodParameter, MethodRegistrationBase, ConfiguredInstance } from "../decorators";
|
2
2
|
import { DBOSExecutor } from "../dbos-executor";
|
3
3
|
import { DBOSContext, DBOSContextImpl } from "../context";
|
4
4
|
import Koa from "koa";
|
5
|
-
import { TailParameters, WorkflowHandle, WorkflowContext, WFInvokeFuncs } from "../workflow";
|
5
|
+
import { TailParameters, WorkflowHandle, WorkflowContext, WFInvokeFuncs, WFInvokeFuncsInst } from "../workflow";
|
6
6
|
import { W3CTraceContextPropagator } from "@opentelemetry/core";
|
7
7
|
import { APITypes, ArgSources } from "./handlerTypes";
|
8
|
-
type WFFunc = (ctxt: WorkflowContext, ...args: any[]) => Promise<
|
8
|
+
type WFFunc = (ctxt: WorkflowContext, ...args: any[]) => Promise<unknown>;
|
9
9
|
export type InvokeFuncs<T> = WFInvokeFuncs<T> & AsyncHandlerWfFuncs<T>;
|
10
|
-
export type
|
10
|
+
export type InvokeFuncsInst<T> = WFInvokeFuncsInst<T>;
|
11
|
+
export type AsyncHandlerWfFuncs<T> = T extends ConfiguredInstance ? never : {
|
11
12
|
[P in keyof T as T[P] extends WFFunc ? P : never]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<WorkflowHandle<Awaited<ReturnType<T[P]>>>> : never;
|
12
13
|
};
|
13
|
-
export type SyncHandlerWfFuncs<T> = {
|
14
|
+
export type SyncHandlerWfFuncs<T> = T extends ConfiguredInstance ? never : {
|
14
15
|
[P in keyof T as T[P] extends WFFunc ? P : never]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<Awaited<ReturnType<T[P]>>> : never;
|
15
16
|
};
|
17
|
+
export type AsyncHandlerWfFuncInst<T> = T extends ConfiguredInstance ? {
|
18
|
+
[P in keyof T as T[P] extends WFFunc ? P : never]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<WorkflowHandle<Awaited<ReturnType<T[P]>>>> : never;
|
19
|
+
} : never;
|
20
|
+
export type SyncHandlerWfFuncsInst<T> = T extends ConfiguredInstance ? {
|
21
|
+
[P in keyof T as T[P] extends WFFunc ? P : never]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<Awaited<ReturnType<T[P]>>> : never;
|
22
|
+
} : never;
|
16
23
|
export interface HandlerContext extends DBOSContext {
|
17
24
|
readonly koaContext: Koa.Context;
|
25
|
+
invoke<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string): InvokeFuncsInst<T>;
|
18
26
|
invoke<T extends object>(targetClass: T, workflowUUID?: string): InvokeFuncs<T>;
|
27
|
+
invokeWorkflow<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string): SyncHandlerWfFuncsInst<T>;
|
19
28
|
invokeWorkflow<T extends object>(targetClass: T, workflowUUID?: string): SyncHandlerWfFuncs<T>;
|
29
|
+
startWorkflow<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string): AsyncHandlerWfFuncInst<T>;
|
20
30
|
startWorkflow<T extends object>(targetClass: T, workflowUUID?: string): AsyncHandlerWfFuncs<T>;
|
21
31
|
retrieveWorkflow<R>(workflowUUID: string): WorkflowHandle<R>;
|
22
32
|
send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
|
@@ -35,22 +45,16 @@ export declare class HandlerContextImpl extends DBOSContextImpl implements Handl
|
|
35
45
|
* Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
|
36
46
|
* to use WorkflowContext.Transaction(OpClass.someMethod, param);
|
37
47
|
*/
|
38
|
-
mainInvoke<T extends object>(object: T, workflowUUID: string | undefined, asyncWf: boolean): InvokeFuncs<T>;
|
39
|
-
invoke<T extends object>(object: T, workflowUUID?: string): InvokeFuncs<T>;
|
40
|
-
startWorkflow<T extends object>(object: T, workflowUUID?: string): AsyncHandlerWfFuncs<T>;
|
41
|
-
invokeWorkflow<T extends object>(object: T, workflowUUID?: string): SyncHandlerWfFuncs<T>;
|
48
|
+
mainInvoke<T extends object>(object: T, workflowUUID: string | undefined, asyncWf: boolean, configuredInstance: ConfiguredInstance | null): InvokeFuncs<T>;
|
49
|
+
invoke<T extends object>(object: T | ConfiguredInstance, workflowUUID?: string): InvokeFuncs<T> | InvokeFuncsInst<T>;
|
50
|
+
startWorkflow<T extends object>(object: T | ConfiguredInstance, workflowUUID?: string): AsyncHandlerWfFuncs<T> | AsyncHandlerWfFuncInst<T>;
|
51
|
+
invokeWorkflow<T extends object>(object: T | ConfiguredInstance, workflowUUID?: string): SyncHandlerWfFuncs<T> | SyncHandlerWfFuncsInst<T>;
|
42
52
|
}
|
43
53
|
export interface HandlerRegistrationBase extends MethodRegistrationBase {
|
44
54
|
apiType: APITypes;
|
45
55
|
apiURL: string;
|
46
56
|
args: HandlerParameter[];
|
47
57
|
}
|
48
|
-
export declare class HandlerRegistration<This, Args extends unknown[], Return> extends MethodRegistration<This, Args, Return> {
|
49
|
-
apiType: APITypes;
|
50
|
-
apiURL: string;
|
51
|
-
args: HandlerParameter[];
|
52
|
-
constructor(origFunc: (this: This, ...args: Args) => Promise<Return>);
|
53
|
-
}
|
54
58
|
export declare class HandlerParameter extends MethodParameter {
|
55
59
|
argSource: ArgSources;
|
56
60
|
constructor(idx: number, at: Function);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["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AmB,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC;IAU1I,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,kBAAkB,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC;CAyB3I;AAED,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,EAAE,CAAC;CAC1B;AAED,qBAAa,gBAAiB,SAAQ,eAAe;IACnD,SAAS,EAAE,UAAU,CAAsB;gBAG/B,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ;CAGtC;AAqBD,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,8RAEjC;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,8RAElC;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,8RAEjC;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,8RAEnC;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,8RAEpC;AAMD,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,YACjB,MAAM,eAAe,MAAM,GAAG,MAAM,kBAAkB,MAAM,UAMtF"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ArgSource = exports.DeleteApi = exports.PatchApi = exports.PutApi = exports.PostApi = exports.GetApi = exports.HandlerParameter = exports.
|
4
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3
|
+
exports.ArgSource = exports.DeleteApi = exports.PatchApi = exports.PutApi = exports.PostApi = exports.GetApi = exports.HandlerParameter = exports.HandlerContextImpl = exports.RequestIDHeader = void 0;
|
5
4
|
const decorators_1 = require("../decorators");
|
6
5
|
const dbos_executor_1 = require("../dbos-executor");
|
7
6
|
const context_1 = require("../context");
|
@@ -82,28 +81,22 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
|
|
82
81
|
* Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
|
83
82
|
* to use WorkflowContext.Transaction(OpClass.someMethod, param);
|
84
83
|
*/
|
85
|
-
mainInvoke(object, workflowUUID, asyncWf) {
|
84
|
+
mainInvoke(object, workflowUUID, asyncWf, configuredInstance) {
|
86
85
|
const ops = (0, decorators_1.getRegisteredOperations)(object);
|
87
86
|
const proxy = {};
|
88
|
-
const params = { workflowUUID: workflowUUID, parentCtx: this };
|
87
|
+
const params = { workflowUUID: workflowUUID, parentCtx: this, configuredInstance };
|
89
88
|
for (const op of ops) {
|
90
89
|
if (asyncWf) {
|
91
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
92
90
|
proxy[op.name] = op.txnConfig
|
93
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
94
91
|
? (...args) => this.#transaction(op.registeredFunction, params, ...args)
|
95
92
|
: op.workflowConfig
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
97
93
|
? (...args) => this.#workflow(op.registeredFunction, params, ...args)
|
98
94
|
: op.commConfig
|
99
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
100
95
|
? (...args) => this.#external(op.registeredFunction, params, ...args)
|
101
96
|
: undefined;
|
102
97
|
}
|
103
98
|
else {
|
104
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
105
99
|
proxy[op.name] = op.workflowConfig
|
106
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
107
100
|
? (...args) => this.#workflow(op.registeredFunction, params, ...args).then((handle) => handle.getResult())
|
108
101
|
: undefined;
|
109
102
|
}
|
@@ -111,13 +104,31 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
|
|
111
104
|
return proxy;
|
112
105
|
}
|
113
106
|
invoke(object, workflowUUID) {
|
114
|
-
|
107
|
+
if (typeof object === 'function') {
|
108
|
+
return this.mainInvoke(object, workflowUUID, true, null);
|
109
|
+
}
|
110
|
+
else {
|
111
|
+
const targetInst = object;
|
112
|
+
return this.mainInvoke(targetInst, workflowUUID, true, targetInst);
|
113
|
+
}
|
115
114
|
}
|
116
115
|
startWorkflow(object, workflowUUID) {
|
117
|
-
|
116
|
+
if (typeof object === 'function') {
|
117
|
+
return this.mainInvoke(object, workflowUUID, true, null);
|
118
|
+
}
|
119
|
+
else {
|
120
|
+
const targetInst = object;
|
121
|
+
return this.mainInvoke(targetInst, workflowUUID, true, targetInst);
|
122
|
+
}
|
118
123
|
}
|
119
124
|
invokeWorkflow(object, workflowUUID) {
|
120
|
-
|
125
|
+
if (typeof object === 'function') {
|
126
|
+
return this.mainInvoke(object, workflowUUID, false, null);
|
127
|
+
}
|
128
|
+
else {
|
129
|
+
const targetInst = object;
|
130
|
+
return this.mainInvoke(targetInst, workflowUUID, false, targetInst);
|
131
|
+
}
|
121
132
|
}
|
122
133
|
//////////////////////
|
123
134
|
/* PRIVATE METHODS */
|
@@ -133,15 +144,6 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
|
|
133
144
|
}
|
134
145
|
}
|
135
146
|
exports.HandlerContextImpl = HandlerContextImpl;
|
136
|
-
class HandlerRegistration extends decorators_1.MethodRegistration {
|
137
|
-
apiType = handlerTypes_1.APITypes.GET;
|
138
|
-
apiURL = "";
|
139
|
-
args = [];
|
140
|
-
constructor(origFunc) {
|
141
|
-
super(origFunc);
|
142
|
-
}
|
143
|
-
}
|
144
|
-
exports.HandlerRegistration = HandlerRegistration;
|
145
147
|
class HandlerParameter extends decorators_1.MethodParameter {
|
146
148
|
argSource = handlerTypes_1.ArgSources.DEFAULT;
|
147
149
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":";;;AAAA,8CAAiL;AACjL,oDAA+D;AAC/D,wCAA0D;AAI1D,8CAAgE;AAChE,4CAA+E;AAE/E,+BAAoC;AAEpC,iDAAsD;AAiDzC,QAAA,eAAe,GAAG,cAAc,CAAC;AAC9C,SAAS,sBAAsB,CAAC,GAAgB;IAC9C,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,uBAAe,CAAC,CAAC;IACvC,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,KAAK,GAAG,IAAA,SAAM,GAAE,CAAC;IACvB,GAAG,CAAC,GAAG,CAAC,uBAAe,EAAE,KAAK,CAAC,CAAC;IAChC,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAa,kBAAmB,SAAQ,yBAAe;IAIR;IAHpC,SAAS,CAAe;IACxB,yBAAyB,CAA4B;IAE9D,YAAY,QAAsB,EAAW,UAAuB;QAClE,sCAAsC;QACtC,MAAM,SAAS,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;QAErD,0DAA0D;QAC1D,MAAM,UAAU,GAAG,IAAI,gCAAyB,EAAE,CAAC;QACnD,MAAM,oBAAoB,GAAG,WAAK,CAAC,cAAc,CAC7C,UAAU,CAAC,OAAO,CAAC,kBAAY,EAAE,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,0BAAoB,CAAC,CACrF,CAAA;QACD,IAAI,IAAU,CAAC;QACf,MAAM,cAAc,GAAG;YACrB,aAAa,EAAE,6BAAa,CAAC,OAAO;YACpC,SAAS,EAAE,SAAS;YACpB,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE;YAChC,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG;YAClC,aAAa,EAAE,UAAU,CAAC,OAAO,CAAC,MAAM;SAC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pE;;OAEG;IACD,MAAM,CAAC,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAUtE;;;OAGG;IACH,MAAM,CAAC,wBAAwB,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAkBtE;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAalE;;OAEG;IACH,MAAM,CAAC,0BAA0B,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;CAqNzE"}
|
@@ -179,6 +179,10 @@ class DBOSHttpServer {
|
|
179
179
|
dbosExec.registeredOperations.forEach((registeredOperation) => {
|
180
180
|
const ro = registeredOperation;
|
181
181
|
if (ro.apiURL) {
|
182
|
+
if (ro.isInstance) {
|
183
|
+
dbosExec.logger.warn(`Operation ${ro.className}/${ro.name} is registered with an endpoint (${ro.apiURL}) but cannot be invoked.`);
|
184
|
+
return;
|
185
|
+
}
|
182
186
|
const defaults = ro.defaults;
|
183
187
|
// Check if we need to apply a custom CORS
|
184
188
|
if (defaults.koaCors) {
|
@@ -281,7 +285,8 @@ class DBOSHttpServer {
|
|
281
285
|
// - If a client-side error is thrown, we return 400.
|
282
286
|
// - If an error contains a `status` field, we return the specified status code.
|
283
287
|
// - Otherwise, we return 500.
|
284
|
-
|
288
|
+
// configuredInstance is currently null; we don't allow configured handlers now.
|
289
|
+
const wfParams = { parentCtx: oc, workflowUUID: headerWorkflowUUID, configuredInstance: null };
|
285
290
|
if (ro.txnConfig) {
|
286
291
|
koaCtxt.body = await dbosExec.transaction(ro.registeredFunction, wfParams, ...args);
|
287
292
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/httpServer/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAmC;AACnC,yDAAiC;AACjC,gDAA6C;AAC7C,qDAA6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ACzC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,iCAAiC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;wBACpE,MAAM;oBACR;wBACE,IAAA,4BAAoB,EAAC,EAAE,CAAC,OAAO,CAAC,CAAA;gBACpC,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AApWD,wCAoWC"}
|
package/dist/src/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ export { WorkflowContext, WorkflowConfig, WorkflowHandle, StatusString, } from '
|
|
5
5
|
export { CommunicatorContext, CommunicatorConfig, } from './communicator';
|
6
6
|
export * as Error from './error';
|
7
7
|
export { DBOSResponseError } from './error';
|
8
|
-
export { LogMasks, ArgRequired, ArgOptional, SkipLogging, LogMask, ArgName, ArgDate, ArgVarchar, DefaultRequiredRole, DefaultArgRequired, DefaultArgOptional, OrmEntities, Transaction, Workflow, Communicator, RequiredRole, DBOSInitializer, DBOSDeploy, } from "./decorators";
|
8
|
+
export { LogMasks, ArgRequired, ArgOptional, SkipLogging, LogMask, ArgName, ArgDate, ArgVarchar, DefaultRequiredRole, DefaultArgRequired, DefaultArgOptional, OrmEntities, ConfiguredInstance, configureInstance, Transaction, Workflow, Communicator, RequiredRole, DBOSInitializer, DBOSDeploy, } from "./decorators";
|
9
9
|
export { ArgSources, } from "./httpServer/handlerTypes";
|
10
10
|
export { HandlerContext, ArgSource, GetApi, PostApi, } from "./httpServer/handler";
|
11
11
|
export { DBOSHttpAuthMiddleware, DBOSHttpAuthReturn, MiddlewareContext, Authentication, KoaBodyParser, KoaCors, KoaMiddleware, OpenApiSecurityScheme } from "./httpServer/middleware";
|
package/dist/src/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,cAAc,GACf,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,WAAW,EACX,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,eAAe,EACf,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EACL,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,QAAQ,EAGR,WAAW,EACX,WAAW,EACX,WAAW,EACX,OAAO,EACP,OAAO,EACP,OAAO,EACP,UAAU,EAGV,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAElB,WAAW,EAGX,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,UAAU,GACX,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EAGd,SAAS,EAGT,MAAM,EACN,OAAO,GACR,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EAGjB,cAAc,EACd,aAAa,EACb,OAAO,EACP,aAAa,EAGb,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,KAAK,EACL,YAAY,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,eAAe,EACf,SAAS,GACV,MAAM,uBAAuB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,cAAc,GACf,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,WAAW,EACX,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,eAAe,EACf,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EACL,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,QAAQ,EAGR,WAAW,EACX,WAAW,EACX,WAAW,EACX,OAAO,EACP,OAAO,EACP,OAAO,EACP,UAAU,EAGV,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAElB,WAAW,EAGX,kBAAkB,EAClB,iBAAiB,EAGjB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,UAAU,GACX,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EAGd,SAAS,EAGT,MAAM,EACN,OAAO,GACR,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EAGjB,cAAc,EACd,aAAa,EACb,OAAO,EACP,aAAa,EAGb,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,KAAK,EACL,YAAY,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,eAAe,EACf,SAAS,GACV,MAAM,uBAAuB,CAAC"}
|
package/dist/src/index.js
CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.Scheduled = exports.SchedulerConfig = exports.SchedulerMode = exports.KafkaConsume = exports.Kafka = exports.OpenApiSecurityScheme = exports.KoaMiddleware = exports.KoaCors = exports.KoaBodyParser = exports.Authentication = exports.PostApi = exports.GetApi = exports.ArgSource = exports.ArgSources = exports.DBOSDeploy = exports.DBOSInitializer = exports.RequiredRole = exports.Communicator = exports.Workflow = exports.Transaction = exports.OrmEntities = exports.DefaultArgOptional = exports.DefaultArgRequired = exports.DefaultRequiredRole = exports.ArgVarchar = exports.ArgDate = exports.ArgName = exports.LogMask = exports.SkipLogging = exports.ArgOptional = exports.ArgRequired = exports.LogMasks = exports.DBOSResponseError = exports.Error = exports.StatusString = exports.InitContext = exports.createTestingRuntime = void 0;
|
26
|
+
exports.Scheduled = exports.SchedulerConfig = exports.SchedulerMode = exports.KafkaConsume = exports.Kafka = exports.OpenApiSecurityScheme = exports.KoaMiddleware = exports.KoaCors = exports.KoaBodyParser = exports.Authentication = exports.PostApi = exports.GetApi = exports.ArgSource = exports.ArgSources = exports.DBOSDeploy = exports.DBOSInitializer = exports.RequiredRole = exports.Communicator = exports.Workflow = exports.Transaction = exports.configureInstance = exports.ConfiguredInstance = exports.OrmEntities = exports.DefaultArgOptional = exports.DefaultArgRequired = exports.DefaultRequiredRole = exports.ArgVarchar = exports.ArgDate = exports.ArgName = exports.LogMask = exports.SkipLogging = exports.ArgOptional = exports.ArgRequired = exports.LogMasks = exports.DBOSResponseError = exports.Error = exports.StatusString = exports.InitContext = exports.createTestingRuntime = void 0;
|
27
27
|
var testing_runtime_1 = require("./testing/testing_runtime");
|
28
28
|
Object.defineProperty(exports, "createTestingRuntime", { enumerable: true, get: function () { return testing_runtime_1.createTestingRuntime; } });
|
29
29
|
var context_1 = require("./context");
|
@@ -49,6 +49,9 @@ Object.defineProperty(exports, "DefaultArgRequired", { enumerable: true, get: fu
|
|
49
49
|
Object.defineProperty(exports, "DefaultArgOptional", { enumerable: true, get: function () { return decorators_1.DefaultArgOptional; } });
|
50
50
|
// Typeorm Class Decorators
|
51
51
|
Object.defineProperty(exports, "OrmEntities", { enumerable: true, get: function () { return decorators_1.OrmEntities; } });
|
52
|
+
// Class Instances
|
53
|
+
Object.defineProperty(exports, "ConfiguredInstance", { enumerable: true, get: function () { return decorators_1.ConfiguredInstance; } });
|
54
|
+
Object.defineProperty(exports, "configureInstance", { enumerable: true, get: function () { return decorators_1.configureInstance; } });
|
52
55
|
// Method Decorators
|
53
56
|
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return decorators_1.Transaction; } });
|
54
57
|
Object.defineProperty(exports, "Workflow", { enumerable: true, get: function () { return decorators_1.Workflow; } });
|
package/dist/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAGmC;AAFjC,uHAAA,oBAAoB,OAAA;AAItB,qCAGmB;AADjB,sGAAA,WAAW,OAAA;AAQb,uCAKoB;AADlB,wGAAA,YAAY,OAAA;AAQd,iDAAiC;AAEjC,iCAEiB;AADf,0GAAA,iBAAiB,OAAA;AAGnB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAGmC;AAFjC,uHAAA,oBAAoB,OAAA;AAItB,qCAGmB;AADjB,sGAAA,WAAW,OAAA;AAQb,uCAKoB;AADlB,wGAAA,YAAY,OAAA;AAQd,iDAAiC;AAEjC,iCAEiB;AADf,0GAAA,iBAAiB,OAAA;AAGnB,2CA8BsB;AA7BpB,sGAAA,QAAQ,OAAA;AAER,uBAAuB;AACvB,yGAAA,WAAW,OAAA;AACX,yGAAA,WAAW,OAAA;AACX,yGAAA,WAAW,OAAA;AACX,qGAAA,OAAO,OAAA;AACP,qGAAA,OAAO,OAAA;AACP,qGAAA,OAAO,OAAA;AACP,wGAAA,UAAU,OAAA;AAEV,mBAAmB;AACnB,iHAAA,mBAAmB,OAAA;AACnB,gHAAA,kBAAkB,OAAA;AAClB,gHAAA,kBAAkB,OAAA;AAClB,2BAA2B;AAC3B,yGAAA,WAAW,OAAA;AAEX,kBAAkB;AAClB,gHAAA,kBAAkB,OAAA;AAClB,+GAAA,iBAAiB,OAAA;AAEjB,oBAAoB;AACpB,yGAAA,WAAW,OAAA;AACX,sGAAA,QAAQ,OAAA;AACR,0GAAA,YAAY,OAAA;AACZ,0GAAA,YAAY,OAAA;AACZ,6GAAA,eAAe,OAAA;AACf,wGAAA,UAAU,OAAA;AAGZ,0DAEmC;AADjC,0GAAA,UAAU,OAAA;AAGZ,gDAS8B;AAN5B,gCAAgC;AAChC,oGAAA,SAAS,OAAA;AAET,sBAAsB;AACtB,iGAAA,MAAM,OAAA;AACN,kGAAA,OAAO,OAAA;AAGT,sDAaiC;AAR/B,wBAAwB;AACxB,4GAAA,cAAc,OAAA;AACd,2GAAA,aAAa,OAAA;AACb,qGAAA,OAAO,OAAA;AACP,2GAAA,aAAa,OAAA;AAEb,qBAAqB;AACrB,mHAAA,qBAAqB,OAAA;AAGvB,uCAGuB;AAFrB,8FAAA,KAAK,OAAA;AACL,qGAAA,YAAY,OAAA;AAGd,mDAI+B;AAH7B,0GAAA,aAAa,OAAA;AACb,4GAAA,eAAe,OAAA;AACf,sGAAA,SAAS,OAAA"}
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import { Consumer, ConsumerConfig, KafkaConfig, KafkaMessage } from "kafkajs";
|
2
2
|
import { DBOSContext } from "..";
|
3
|
-
import { ClassRegistration,
|
3
|
+
import { ClassRegistration, MethodRegistrationBase, RegistrationDefaults } from "../decorators";
|
4
4
|
import { DBOSExecutor } from "../dbos-executor";
|
5
5
|
type KafkaArgs = [string, number, KafkaMessage];
|
6
|
-
export
|
6
|
+
export interface KafkaRegistrationBase extends MethodRegistrationBase {
|
7
7
|
kafkaTopics?: string | RegExp | Array<string | RegExp>;
|
8
8
|
consumerConfig?: ConsumerConfig;
|
9
|
-
constructor(origFunc: (this: This, ...args: Args) => Promise<Return>);
|
10
9
|
}
|
11
10
|
export declare function KafkaConsume(topics: string | RegExp | Array<string | RegExp>, consumerConfig?: ConsumerConfig): <This, Ctx extends DBOSContext, Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: KafkaArgs) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, args_1: string, args_2: number, args_3: KafkaMessage) => Promise<Return>>;
|
12
11
|
export interface KafkaDefaults extends RegistrationDefaults {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"kafka.d.ts","sourceRoot":"","sources":["../../../src/kafka/kafka.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAwB,MAAM,SAAS,CAAC;AACtH,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,
|
1
|
+
{"version":3,"file":"kafka.d.ts","sourceRoot":"","sources":["../../../src/kafka/kafka.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAwB,MAAM,SAAS,CAAC;AACtH,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAyD,MAAM,eAAe,CAAC;AACvJ,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD,KAAK,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAA;AAM/C,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACvD,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,cAAc,CAAC,EAAE,cAAc,mDAElG,MAAM,eACD,MAAM,gBACL,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,SAAS,KAAK,QAAQ,MAAM,CAAC,CAAC,8HAUvG;AAMD,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,qBAAa,sBAAsB,CAAC,EAAE,SAAS;IAAE,KAAI,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAA;CAAE,CAAE,SAAQ,iBAAiB,CAAC,EAAE,CAAE,YAAW,aAAa;IACxI,WAAW,CAAC,EAAE,WAAW,CAAC;gBAEd,IAAI,EAAE,EAAE;CAGrB;AAED,wBAAgB,KAAK,CAAC,WAAW,EAAE,WAAW,4BACH,OAAO,EAAE,KAAG,MAAM,QAAU,CAAC,UAKvE;AAMD,qBAAa,SAAS;IAGR,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAF3C,QAAQ,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAM;gBAEf,QAAQ,EAAE,YAAY;IAErC,SAAS;IAiET,YAAY;IAMlB,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAQ5C,2BAA2B;CAiB5B"}
|
package/dist/src/kafka/kafka.js
CHANGED
@@ -1,21 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DBOSKafka = exports.Kafka = exports.KafkaClassRegistration = exports.KafkaConsume =
|
3
|
+
exports.DBOSKafka = exports.Kafka = exports.KafkaClassRegistration = exports.KafkaConsume = void 0;
|
4
4
|
const kafkajs_1 = require("kafkajs");
|
5
5
|
const decorators_1 = require("../decorators");
|
6
6
|
const error_1 = require("../error");
|
7
7
|
const utils_1 = require("../utils");
|
8
|
-
/////////////////////////////
|
9
|
-
/* Kafka Method Decorators */
|
10
|
-
/////////////////////////////
|
11
|
-
class KafkaRegistration extends decorators_1.MethodRegistration {
|
12
|
-
kafkaTopics;
|
13
|
-
consumerConfig;
|
14
|
-
constructor(origFunc) {
|
15
|
-
super(origFunc);
|
16
|
-
}
|
17
|
-
}
|
18
|
-
exports.KafkaRegistration = KafkaRegistration;
|
19
8
|
function KafkaConsume(topics, consumerConfig) {
|
20
9
|
function kafkadec(target, propertyKey, inDescriptor) {
|
21
10
|
const { descriptor, registration } = (0, decorators_1.registerAndWrapFunction)(target, propertyKey, inDescriptor);
|
@@ -100,7 +89,7 @@ class DBOSKafka {
|
|
100
89
|
eachMessage: async ({ topic, partition, message }) => {
|
101
90
|
// This combination uniquely identifies a message for a given Kafka cluster
|
102
91
|
const workflowUUID = `kafka-unique-id-${topic}-${partition}-${message.offset}`;
|
103
|
-
const wfParams = { workflowUUID: workflowUUID };
|
92
|
+
const wfParams = { workflowUUID: workflowUUID, configuredInstance: null };
|
104
93
|
// All operations annotated with Kafka decorators must take in these three arguments
|
105
94
|
const args = [topic, partition, message];
|
106
95
|
// We can only guarantee exactly-once-per-message execution of transactions and workflows.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"kafka.js","sourceRoot":"","sources":["../../../src/kafka/kafka.ts"],"names":[],"mappings":";;;AAAA,qCAAsH;AAEtH,
|
1
|
+
{"version":3,"file":"kafka.js","sourceRoot":"","sources":["../../../src/kafka/kafka.ts"],"names":[],"mappings":";;;AAAA,qCAAsH;AAEtH,8CAAuJ;AAIvJ,oCAAqC;AACrC,oCAAmC;AAanC,SAAgB,YAAY,CAAC,MAAgD,EAAE,cAA+B;IAC5G,SAAS,QAAQ,CACf,MAAc,EACd,WAAmB,EACnB,YAAoG;QAEpG,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,IAAA,oCAAuB,EAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAChG,MAAM,iBAAiB,GAAG,YAAgD,CAAC;QAC3E,iBAAiB,CAAC,WAAW,GAAG,MA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C,WAAW,CAAC,OAAO,CAAE,UAAU,CAAC,EAAE;wBACnC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;oBAClE,CAAC,CAAC,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACN,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;gBACtE,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AArGD,8BAqGC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { WorkflowContext } from "..";
|
2
2
|
import { DBOSExecutor } from "../dbos-executor";
|
3
|
-
import {
|
3
|
+
import { MethodRegistrationBase } from "../decorators";
|
4
4
|
export declare enum SchedulerMode {
|
5
5
|
ExactlyOncePerInterval = "ExactlyOncePerInterval",
|
6
6
|
ExactlyOncePerIntervalWhenActive = "ExactlyOncePerIntervalWhenActive"
|
@@ -10,13 +10,9 @@ export declare class SchedulerConfig {
|
|
10
10
|
mode?: SchedulerMode;
|
11
11
|
}
|
12
12
|
export type ScheduledArgs = [Date, Date];
|
13
|
-
export interface
|
13
|
+
export interface SchedulerRegistrationBase extends MethodRegistrationBase {
|
14
14
|
schedulerConfig?: SchedulerConfig;
|
15
15
|
}
|
16
|
-
export declare class SchedulerRegistration<This, Args extends unknown[], Return> extends MethodRegistration<This, Args, Return> implements SchedulerRegistrationConfig {
|
17
|
-
schedulerConfig?: SchedulerConfig;
|
18
|
-
constructor(origFunc: (this: This, ...args: Args) => Promise<Return>);
|
19
|
-
}
|
20
16
|
export declare function Scheduled(schedulerConfig: SchedulerConfig): <This, Ctx extends WorkflowContext, Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: ScheduledArgs) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, args_1: Date, args_2: Date) => Promise<Return>>;
|
21
17
|
export declare class DBOSScheduler {
|
22
18
|
readonly dbosExec: DBOSExecutor;
|
@@ -31,12 +27,12 @@ declare class DetachableLoop {
|
|
31
27
|
readonly dbosExec: DBOSExecutor;
|
32
28
|
readonly crontab: string;
|
33
29
|
readonly schedMode: SchedulerMode;
|
34
|
-
readonly scheduledMethod:
|
30
|
+
readonly scheduledMethod: SchedulerRegistrationBase;
|
35
31
|
private isRunning;
|
36
32
|
private interruptResolve?;
|
37
33
|
private lastExec;
|
38
34
|
private timeMatcher;
|
39
|
-
constructor(dbosExec: DBOSExecutor, crontab: string, schedMode: SchedulerMode, scheduledMethod:
|
35
|
+
constructor(dbosExec: DBOSExecutor, crontab: string, schedMode: SchedulerMode, scheduledMethod: SchedulerRegistrationBase);
|
40
36
|
startLoop(): Promise<void>;
|
41
37
|
setStopLoopFlag(): void;
|
42
38
|
private sleepms;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../src/scheduler/scheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../src/scheduler/scheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAA2B,MAAM,eAAe,CAAC;AAQhF,oBAAY,aAAa;IACrB,sBAAsB,2BAA2B;IACjD,gCAAgC,qCAAqC;CACxE;AAED,qBAAa,eAAe;IACxB,OAAO,EAAE,MAAM,CAAe;IAC9B,IAAK,CAAC,EAAE,aAAa,CAAwC;CAChE;AAOD,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AAExC,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IAErE,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC;AAED,wBAAgB,SAAS,CAAC,eAAe,EAAE,eAAe,uDAE1C,MAAM,eACD,MAAM,gBACL,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,aAAa,KAAK,QAAQ,MAAM,CAAC,CAAC,oGAS/G;AAMD,qBAAa,aAAa;IACV,QAAQ,CAAC,QAAQ,EAAE,YAAY;gBAAtB,QAAQ,EAAE,YAAY;IAE3C,UAAU,EAAE,cAAc,EAAE,CAAM;IAClC,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,EAAG,CAAM;IAElC,aAAa;IAgBP,gBAAgB;IActB,+BAA+B;CAUlC;AAED,cAAM,cAAc;IAMJ,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM;IAAE,QAAQ,CAAC,SAAS,EAAC,aAAa;IAC3F,QAAQ,CAAC,eAAe,EAAE,yBAAyB;IAN/D,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,gBAAgB,CAAC,CAAa;IACtC,OAAO,CAAC,QAAQ,CAAO;IACvB,OAAO,CAAC,WAAW,CAAc;gBAEZ,QAAQ,EAAE,YAAY,EAAW,OAAO,EAAE,MAAM,EAAW,SAAS,EAAC,aAAa,EAClF,eAAe,EAAE,yBAAyB;IAOzD,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IA8DhC,eAAe;IAQf,OAAO,CAAC,OAAO;CAGlB"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DBOSScheduler = exports.Scheduled = exports.
|
3
|
+
exports.DBOSScheduler = exports.Scheduled = exports.SchedulerConfig = exports.SchedulerMode = void 0;
|
4
4
|
const decorators_1 = require("../decorators");
|
5
5
|
const crontab_1 = require("./crontab");
|
6
6
|
////
|
@@ -16,13 +16,6 @@ class SchedulerConfig {
|
|
16
16
|
mode = SchedulerMode.ExactlyOncePerInterval;
|
17
17
|
}
|
18
18
|
exports.SchedulerConfig = SchedulerConfig;
|
19
|
-
class SchedulerRegistration extends decorators_1.MethodRegistration {
|
20
|
-
schedulerConfig;
|
21
|
-
constructor(origFunc) {
|
22
|
-
super(origFunc);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
exports.SchedulerRegistration = SchedulerRegistration;
|
26
19
|
function Scheduled(schedulerConfig) {
|
27
20
|
function scheddec(target, propertyKey, inDescriptor) {
|
28
21
|
const { descriptor, registration } = (0, decorators_1.registerAndWrapFunction)(target, propertyKey, inDescriptor);
|
@@ -132,7 +125,7 @@ class DetachableLoop {
|
|
132
125
|
// Init workflow
|
133
126
|
const workflowUUID = `sched-${this.scheduledMethod.name}-${nextExecTime.toISOString()}`;
|
134
127
|
this.dbosExec.logger.debug(`Executing scheduled workflow ${workflowUUID}`);
|
135
|
-
const wfParams = { workflowUUID: workflowUUID };
|
128
|
+
const wfParams = { workflowUUID: workflowUUID, configuredInstance: null };
|
136
129
|
// All operations annotated with Scheduled decorators must take in these four
|
137
130
|
const args = [nextExecTime, new Date()];
|
138
131
|
// We currently only support scheduled workflows
|