@dbos-inc/dbos-sdk 1.26.8-preview.g91ca9cd13d → 1.27.5-preview

Sign up to get free protection for your applications and to get access to all the features.
@@ -71,6 +71,7 @@ class DBOSScheduler {
71
71
  }
72
72
  }
73
73
  exports.DBOSScheduler = DBOSScheduler;
74
+ const SCHEDULER_EVENT_SERVICE_NAME = 'dbos.scheduler';
74
75
  class DetachableLoop {
75
76
  dbosExec;
76
77
  crontab;
@@ -94,9 +95,10 @@ class DetachableLoop {
94
95
  async startLoop() {
95
96
  // See if the exec time is available in durable storage...
96
97
  if (this.schedMode === SchedulerMode.ExactlyOncePerInterval) {
97
- const lasttm = await this.dbosExec.systemDatabase.getLastScheduledTime(this.scheduledMethodName);
98
+ const lastState = await this.dbosExec.systemDatabase.getEventDispatchState(SCHEDULER_EVENT_SERVICE_NAME, this.scheduledMethodName, 'lastState');
99
+ const lasttm = lastState?.value;
98
100
  if (lasttm) {
99
- this.lastExec = new Date(lasttm);
101
+ this.lastExec = new Date(parseFloat(lasttm));
100
102
  }
101
103
  }
102
104
  this.isRunning = true;
@@ -146,7 +148,15 @@ class DetachableLoop {
146
148
  this.dbosExec.logger.error(`Function ${this.scheduledMethodName} is @scheduled but not a workflow`);
147
149
  }
148
150
  // Record the time of the wf kicked off
149
- const dbTime = await this.dbosExec.systemDatabase.setLastScheduledTime(this.scheduledMethodName, nextExecTime.getTime());
151
+ const ers = {
152
+ service: SCHEDULER_EVENT_SERVICE_NAME,
153
+ workflowFnName: this.scheduledMethodName,
154
+ key: 'lastState',
155
+ value: `${nextExecTime.getTime()}`,
156
+ updateTime: nextExecTime.getTime(),
157
+ };
158
+ const updRec = await this.dbosExec.systemDatabase.upsertEventDispatchState(ers);
159
+ const dbTime = parseFloat(updRec.value);
150
160
  if (dbTime && dbTime > nextExecTime.getTime())
151
161
  nextExecTime.setTime(dbTime);
152
162
  this.lastExec = nextExecTime;
@@ -1 +1 @@
1
- {"version":3,"file":"scheduler.js","sourceRoot":"","sources":["../../../src/scheduler/scheduler.ts"],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C,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,kBAAsD,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC;YACjI,CAAC;iBACI,CAAC;gBACF,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,IAAI,CAAC,mBAAmB,mCAAmC,CAAC,CAAC;YACxG,CAAC;YAED,uCAAuC;YACvC,MAAM,GAAG,GAA2B;gBAChC,OAAO,EAAE,4BAA4B;gBACrC,cAAc,EAAE,IAAI,CAAC,mBAAmB;gBACxC,GAAG,EAAE,WAAW;gBAChB,KAAK,EAAE,GAAG,YAAY,CAAC,OAAO,EAAE,EAAE;gBAClC,UAAU,EAAE,YAAY,CAAC,OAAO,EAAE;aACrC,CAAA;YACD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;YAChF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,KAAM,CAAC,CAAC;YACzC,IAAI,MAAM,IAAI,MAAM,GAAG,YAAY,CAAC,OAAO,EAAE;gBAAE,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,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"}
@@ -5,6 +5,7 @@ import { HTTPRequest } from "./context";
5
5
  import { GlobalLogger as Logger } from "./telemetry/logs";
6
6
  import { Knex } from "knex";
7
7
  import { WorkflowQueue } from "./wfqueue";
8
+ import { DBOSEventReceiverQuery, DBOSEventReceiverState } from "./eventreceiver";
8
9
  export interface SystemDatabase {
9
10
  init(): Promise<void>;
10
11
  destroy(): Promise<void>;
@@ -34,8 +35,9 @@ export interface SystemDatabase {
34
35
  functionID: number;
35
36
  timeoutFunctionID: number;
36
37
  }): Promise<T | null>;
37
- getLastScheduledTime(wfn: string): Promise<number | null>;
38
- setLastScheduledTime(wfn: string, invtime: number): Promise<number | null>;
38
+ getEventDispatchState(service: string, workflowFnName: string, key: string): Promise<DBOSEventReceiverState | undefined>;
39
+ queryEventDispatchState(query: DBOSEventReceiverQuery): Promise<DBOSEventReceiverState[]>;
40
+ upsertEventDispatchState(state: DBOSEventReceiverState): Promise<DBOSEventReceiverState>;
39
41
  getWorkflows(input: GetWorkflowsInput): Promise<GetWorkflowsOutput>;
40
42
  getWorkflowQueue(input: GetWorkflowQueueInput): Promise<GetWorkflowQueueOutput>;
41
43
  }
@@ -118,8 +120,9 @@ export declare class PostgresSystemDatabase implements SystemDatabase {
118
120
  * workflow listener by resolving its promise.
119
121
  */
120
122
  listenForNotifications(): Promise<void>;
121
- getLastScheduledTime(wfn: string): Promise<number | null>;
122
- setLastScheduledTime(wfn: string, invtime: number): Promise<number | null>;
123
+ getEventDispatchState(svc: string, wfn: string, key: string): Promise<DBOSEventReceiverState | undefined>;
124
+ queryEventDispatchState(input: DBOSEventReceiverQuery): Promise<DBOSEventReceiverState[]>;
125
+ upsertEventDispatchState(state: DBOSEventReceiverState): Promise<DBOSEventReceiverState>;
123
126
  getWorkflows(input: GetWorkflowsInput): Promise<GetWorkflowsOutput>;
124
127
  getWorkflowQueue(input: GetWorkflowQueueInput): Promise<GetWorkflowQueueOutput>;
125
128
  enqueueWorkflow(workflowId: string, queue: WorkflowQueue): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"system_database.d.ts","sourceRoot":"","sources":["../../src/system_database.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAiB,IAAI,EAAE,UAAU,EAAgB,UAAU,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ASxE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBvE,6BAA6B,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CA2E9E"}
@@ -647,27 +647,91 @@ class PostgresSystemDatabase {
647
647
  };
648
648
  this.notificationsClient.on("notification", handler);
649
649
  }
650
- /* SCHEDULER */
651
- async getLastScheduledTime(wfn) {
650
+ // Event dispatcher queries / updates
651
+ async getEventDispatchState(svc, wfn, key) {
652
652
  const res = await this.pool.query(`
653
- SELECT last_run_time
654
- FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.scheduler_state
655
- WHERE workflow_fn_name = $1;
656
- `, [wfn]);
657
- let v = res.rows[0]?.last_run_time ?? null;
658
- if (v !== null)
659
- v = parseInt(`${v}`);
660
- return v;
661
- }
662
- async setLastScheduledTime(wfn, invtime) {
653
+ SELECT *
654
+ FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.event_dispatch_kv
655
+ WHERE workflow_fn_name = $1
656
+ AND service_name = $2
657
+ AND key = $3;
658
+ `, [wfn, svc, key]);
659
+ if (res.rows.length === 0)
660
+ return undefined;
661
+ return {
662
+ service: res.rows[0].service_name,
663
+ workflowFnName: res.rows[0].workflow_fn_name,
664
+ key: res.rows[0].key,
665
+ value: res.rows[0].value,
666
+ updateTime: res.rows[0].update_time,
667
+ updateSeq: (res.rows[0].update_seq !== null && res.rows[0].update_seq !== undefined ? BigInt(res.rows[0].update_seq) : undefined),
668
+ };
669
+ }
670
+ async queryEventDispatchState(input) {
671
+ let query = this.knexDB(`${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.event_dispatch_kv`);
672
+ if (input.service) {
673
+ query = query.where('service_name', input.service);
674
+ }
675
+ if (input.workflowFnName) {
676
+ query = query.where('workflow_fn_name', input.workflowFnName);
677
+ }
678
+ if (input.key) {
679
+ query = query.where('key', input.key);
680
+ }
681
+ if (input.startTime) {
682
+ query = query.where('update_time', '>=', new Date(input.startTime).getTime());
683
+ }
684
+ if (input.endTime) {
685
+ query = query.where('update_time', '<=', new Date(input.endTime).getTime());
686
+ }
687
+ if (input.startSeq) {
688
+ query = query.where('update_seq', '>=', input.startSeq);
689
+ }
690
+ if (input.endSeq) {
691
+ query = query.where('update_seq', '<=', input.endSeq);
692
+ }
693
+ const rows = await query.select();
694
+ const ers = rows.map((row) => {
695
+ return {
696
+ service: row.service_name,
697
+ workflowFnName: row.workflow_fn_name,
698
+ key: row.key,
699
+ value: row.value,
700
+ updateTime: row.update_time,
701
+ updateSeq: (row.update_seq !== undefined && row.update_seq !== null ? BigInt(row.update_seq) : undefined),
702
+ };
703
+ });
704
+ return ers;
705
+ }
706
+ async upsertEventDispatchState(state) {
663
707
  const res = await this.pool.query(`
664
- INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.scheduler_state (workflow_fn_name, last_run_time)
665
- VALUES ($1, $2)
666
- ON CONFLICT (workflow_fn_name)
667
- DO UPDATE SET last_run_time = GREATEST(EXCLUDED.last_run_time, scheduler_state.last_run_time)
668
- RETURNING last_run_time;
669
- `, [wfn, invtime]);
670
- return parseInt(`${res.rows[0].last_run_time}`);
708
+ INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.event_dispatch_kv (
709
+ service_name, workflow_fn_name, key, value, update_time, update_seq)
710
+ VALUES ($1, $2, $3, $4, $5, $6)
711
+ ON CONFLICT (service_name, workflow_fn_name, key)
712
+ DO UPDATE SET
713
+ update_time = GREATEST(EXCLUDED.update_time, event_dispatch_kv.update_time),
714
+ update_seq = GREATEST(EXCLUDED.update_seq, event_dispatch_kv.update_seq),
715
+ value = CASE WHEN (EXCLUDED.update_time > event_dispatch_kv.update_time OR EXCLUDED.update_seq > event_dispatch_kv.update_seq OR
716
+ (event_dispatch_kv.update_time IS NULL and event_dispatch_kv.update_seq IS NULL))
717
+ THEN EXCLUDED.value ELSE event_dispatch_kv.value END
718
+ RETURNING value, update_time, update_seq;
719
+ `, [
720
+ state.service,
721
+ state.workflowFnName,
722
+ state.key,
723
+ state.value,
724
+ state.updateTime,
725
+ state.updateSeq,
726
+ ]);
727
+ return {
728
+ service: state.service,
729
+ workflowFnName: state.workflowFnName,
730
+ key: state.key,
731
+ value: res.rows[0].value,
732
+ updateTime: res.rows[0].update_time,
733
+ updateSeq: (res.rows[0].update_seq !== undefined && res.rows[0].update_seq !== null ? BigInt(res.rows[0].update_seq) : undefined),
734
+ };
671
735
  }
672
736
  async getWorkflows(input) {
673
737
  let query = this.knexDB(`${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status`).orderBy('created_at', 'desc');
@@ -1 +1 @@
1
- {"version":3,"file":"system_database.js","sourceRoot":"","sources":["../../src/system_database.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;AAEvD,qDAAmE;AACnE,mDAAmE;AACnE,2BAAuF;AACvF,mCAAgH;AAChH,yCAAgJ;AAEhJ,mCAA6D;AAG7D,gDAAkC;AAClC,gDAAwB;AAiFjB,KAAK,UAAU,qBAAqB,CAAC,gBAA4B;IACtE,MAAM,mBAAmB,GAAG,cAAI,CAAC,IAAI,CAAC,IAAA,uBAAe,EAAC,SAAS,CAAC,EAAE,YAAY,CAAC,CAAC;IAChF,MAAM,UAAU,GAAG;QACjB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,gBAAgB;QAC5B,UAAU,EAAE;YACV,SAAS,EAAE,mBAAmB;YAC9B,SAAS,EAAE,iBAAiB;SAC7B;KACF,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,cAAI,EAAC,UAAU,CAAC,CAAC;IAChC,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;IAChC,CAAC;YAAS,CAAC;QACT,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;IACzB,CAAC;AACH,CAAC;AAhBD,sDAgBC;AAED,MAAa,sBAAsB;IAcZ;IA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E,uBAAY,CAAC,QAAQ,CAAC;qBACzC,MAAM,CAAC,QAAQ,EAAE,uBAAY,CAAC,OAAO,CAAC,CAAC;gBAC1C,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;oBACZ,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;oBACpB,MAAM,GAAG,CAAiB,GAAG,4BAAY,CAAC,kBAAkB,iBAAiB,CAAC;yBAC3E,KAAK,CAAC,eAAe,EAAE,EAAE,CAAC;yBAC1B,MAAM,CAAC,qBAAqB,EAAE,WAAW,CAAC,CAAC;gBAChD,CAAC;gBACD,sFAAsF;gBACtF,EAAE,gBAAgB,CAAC;YACrB,CAAC;QACH,CAAC,EAAE,EAAC,cAAc,EAAE,iBAAiB,EAAC,CAAC,CAAC;QAExC,2EAA2E;QAC3E,yEAAyE;QACzE,2BAA2B;QAC3B,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACpB,MAAM,IAAI,CAAC,MAAM,CAAiB,GAAG,4BAAY,CAAC,kBAAkB,iBAAiB,CAAC;iBACnF,YAAY,CAAC,uBAAuB,CAAC;iBACrC,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC;iBAClC,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE,WAAW,GAAG,eAAe,CAAC;iBACnE,MAAM,EAAE,CAAC;QACd,CAAC;QAED,oDAAoD;QACpD,OAAO,UAAU,CAAC;IACpB,CAAC;;AAv6BH,wDAw6BC"}
@@ -54,10 +54,12 @@ export declare class TestingRuntimeImpl implements TestingRuntime {
54
54
  * This should be the first function call before any subsequent calls.
55
55
  */
56
56
  init(userClasses?: object[], testConfig?: DBOSConfig, systemDB?: SystemDatabase): Promise<void>;
57
+ initEventReceivers(): Promise<void>;
57
58
  /**
58
59
  * Release resources after tests.
59
60
  */
60
61
  destroy(): Promise<void>;
62
+ destroyEventReceivers(): Promise<void>;
61
63
  /**
62
64
  * Get Application Configuration.
63
65
  */
@@ -1 +1 @@
1
-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52,6 +52,7 @@ class TestingRuntimeImpl {
52
52
  #wfQueueRunner = null;
53
53
  #applicationConfig = {};
54
54
  #isInitialized = false;
55
+ #dbosExec = null;
55
56
  /**
56
57
  * Initialize the testing runtime by loading user functions specified in classes and using the specified config.
57
58
  * This should be the first function call before any subsequent calls.
@@ -59,19 +60,23 @@ class TestingRuntimeImpl {
59
60
  async init(userClasses, testConfig, systemDB) {
60
61
  const dbosConfig = testConfig ? [testConfig] : (0, config_1.parseConfigFile)();
61
62
  runtime_1.DBOS.dbosConfig = dbosConfig[0];
62
- const dbosExec = new dbos_executor_1.DBOSExecutor(dbosConfig[0], systemDB);
63
- runtime_1.DBOS.globalLogger = dbosExec.logger;
64
- await dbosExec.init(userClasses);
65
- this.#server = new server_1.DBOSHttpServer(dbosExec);
66
- for (const evtRcvr of dbosExec.eventReceivers) {
67
- await evtRcvr.initialize(dbosExec);
68
- }
69
- this.#scheduler = new scheduler_1.DBOSScheduler(dbosExec);
63
+ this.#dbosExec = new dbos_executor_1.DBOSExecutor(dbosConfig[0], systemDB);
64
+ this.#applicationConfig = this.#dbosExec.config.application ?? {};
65
+ runtime_1.DBOS.globalLogger = this.#dbosExec.logger;
66
+ await this.#dbosExec.init(userClasses);
67
+ this.#server = new server_1.DBOSHttpServer(this.#dbosExec);
68
+ await this.initEventReceivers();
69
+ this.#scheduler = new scheduler_1.DBOSScheduler(this.#dbosExec);
70
70
  this.#scheduler.initScheduler();
71
- this.#wfQueueRunner = wfqueue_1.wfQueueRunner.dispatchLoop(dbosExec);
72
- this.#applicationConfig = dbosExec.config.application ?? {};
71
+ this.#wfQueueRunner = wfqueue_1.wfQueueRunner.dispatchLoop(this.#dbosExec);
72
+ this.#applicationConfig = this.#dbosExec.config.application ?? {};
73
73
  this.#isInitialized = true;
74
74
  }
75
+ async initEventReceivers() {
76
+ for (const evtRcvr of this.#dbosExec.eventReceivers) {
77
+ await evtRcvr.initialize(this.#dbosExec);
78
+ }
79
+ }
75
80
  /**
76
81
  * Release resources after tests.
77
82
  */
@@ -87,13 +92,16 @@ class TestingRuntimeImpl {
87
92
  this.#server?.dbosExec?.logger.warn(`Error destroying workflow queue runner: ${e.message}`);
88
93
  }
89
94
  await this.#scheduler?.destroyScheduler();
90
- for (const evtRcvr of this.#server?.dbosExec?.eventReceivers || []) {
91
- await evtRcvr.destroy();
92
- }
95
+ await this.destroyEventReceivers();
93
96
  await this.#server?.dbosExec.destroy();
94
97
  this.#isInitialized = false;
95
98
  }
96
99
  }
100
+ async destroyEventReceivers() {
101
+ for (const evtRcvr of this.#server?.dbosExec?.eventReceivers || []) {
102
+ await evtRcvr.destroy();
103
+ }
104
+ }
97
105
  getConfig(key, defaultValue) {
98
106
  const value = (0, lodash_1.get)(this.#applicationConfig, key, defaultValue);
99
107
  if (value && defaultValue && typeof value !== typeof defaultValue) {
@@ -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,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI;YAChC,QAAQ,EAAE,UAAU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