@dbos-inc/dbos-sdk 1.24.12-preview.g8bb979d7ca → 1.24.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/dist/schemas/system_db_schema.d.ts +8 -0
  2. package/dist/schemas/system_db_schema.d.ts.map +1 -1
  3. package/dist/src/dbos-executor.d.ts +9 -9
  4. package/dist/src/dbos-executor.d.ts.map +1 -1
  5. package/dist/src/dbos-executor.js +69 -40
  6. package/dist/src/dbos-executor.js.map +1 -1
  7. package/dist/src/dbos-runtime/cli.js +1 -1
  8. package/dist/src/dbos-runtime/cli.js.map +1 -1
  9. package/dist/src/dbos-runtime/migrate.d.ts +2 -2
  10. package/dist/src/dbos-runtime/runtime.d.ts +1 -0
  11. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  12. package/dist/src/dbos-runtime/runtime.js +6 -0
  13. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  14. package/dist/src/debugger/debug_workflow.d.ts +5 -4
  15. package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
  16. package/dist/src/debugger/debug_workflow.js +11 -11
  17. package/dist/src/debugger/debug_workflow.js.map +1 -1
  18. package/dist/src/decorators.d.ts +4 -4
  19. package/dist/src/decorators.d.ts.map +1 -1
  20. package/dist/src/decorators.js +3 -3
  21. package/dist/src/decorators.js.map +1 -1
  22. package/dist/src/eventreceiver.d.ts +2 -2
  23. package/dist/src/eventreceiver.d.ts.map +1 -1
  24. package/dist/src/httpServer/handler.d.ts +5 -4
  25. package/dist/src/httpServer/handler.d.ts.map +1 -1
  26. package/dist/src/httpServer/handler.js +11 -11
  27. package/dist/src/httpServer/handler.js.map +1 -1
  28. package/dist/src/index.d.ts +3 -2
  29. package/dist/src/index.d.ts.map +1 -1
  30. package/dist/src/index.js +5 -2
  31. package/dist/src/index.js.map +1 -1
  32. package/dist/src/scheduler/scheduler.d.ts +0 -1
  33. package/dist/src/scheduler/scheduler.d.ts.map +1 -1
  34. package/dist/src/scheduler/scheduler.js +0 -3
  35. package/dist/src/scheduler/scheduler.js.map +1 -1
  36. package/dist/src/{communicator.d.ts → step.d.ts} +6 -7
  37. package/dist/src/step.d.ts.map +1 -0
  38. package/dist/src/{communicator.js → step.js} +4 -4
  39. package/dist/src/step.js.map +1 -0
  40. package/dist/src/system_database.d.ts +8 -0
  41. package/dist/src/system_database.d.ts.map +1 -1
  42. package/dist/src/system_database.js +106 -7
  43. package/dist/src/system_database.js.map +1 -1
  44. package/dist/src/testing/testing_runtime.d.ts +6 -5
  45. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  46. package/dist/src/testing/testing_runtime.js +11 -6
  47. package/dist/src/testing/testing_runtime.js.map +1 -1
  48. package/dist/src/wfqueue.d.ts +28 -0
  49. package/dist/src/wfqueue.d.ts.map +1 -0
  50. package/dist/src/wfqueue.js +70 -0
  51. package/dist/src/wfqueue.js.map +1 -0
  52. package/dist/src/workflow.d.ts +15 -10
  53. package/dist/src/workflow.d.ts.map +1 -1
  54. package/dist/src/workflow.js +22 -21
  55. package/dist/src/workflow.js.map +1 -1
  56. package/dist/tsconfig.build.tsbuildinfo +1 -1
  57. package/migrations/20240924000000_workflowqueue.js +24 -0
  58. package/package.json +1 -1
  59. package/dist/src/communicator.d.ts.map +0 -1
  60. package/dist/src/communicator.js.map +0 -1
@@ -12,6 +12,7 @@ export interface workflow_status {
12
12
  request: string;
13
13
  executor_id: string;
14
14
  application_version: string;
15
+ queue_name?: string;
15
16
  }
16
17
  export interface notifications {
17
18
  destination_uuid: string;
@@ -37,4 +38,11 @@ export interface scheduler_state {
37
38
  workflow_fn_name: string;
38
39
  last_run_time: number;
39
40
  }
41
+ export interface workflow_queue {
42
+ workflow_uuid: string;
43
+ queue_name: string;
44
+ created_at_epoch_ms: number;
45
+ started_at_epoch_ms?: number;
46
+ completed_at_epoch_ms?: number;
47
+ }
40
48
  //# sourceMappingURL=system_db_schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"system_db_schema.d.ts","sourceRoot":"","sources":["../../schemas/system_db_schema.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"system_db_schema.d.ts","sourceRoot":"","sources":["../../schemas/system_db_schema.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;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us, BufferedResult } from './workflow';
3
3
  import { Transaction, TransactionConfig } from './transaction';
4
- import { CommunicatorConfig, Communicator } from './communicator';
4
+ import { StepConfig, StepFunction } from './step';
5
5
  import { TelemetryCollector } from './telemetry/collector';
6
6
  import { Tracer } from './telemetry/traces';
7
7
  import { GlobalLogger as Logger } from './telemetry/logs';
@@ -39,9 +39,9 @@ interface TransactionInfo {
39
39
  transaction: Transaction<unknown[], unknown>;
40
40
  config: TransactionConfig;
41
41
  }
42
- interface CommunicatorInfo {
43
- communicator: Communicator<unknown[], unknown>;
44
- config: CommunicatorConfig;
42
+ interface StepInfo {
43
+ step: StepFunction<unknown[], unknown>;
44
+ config: StepConfig;
45
45
  }
46
46
  interface ProcedureInfo {
47
47
  procedure: StoredProcedure<unknown>;
@@ -69,7 +69,7 @@ export declare class DBOSExecutor implements DBOSExecutorContext {
69
69
  static readonly tempWorkflowName = "temp_workflow";
70
70
  readonly workflowInfoMap: Map<string, WorkflowInfo>;
71
71
  readonly transactionInfoMap: Map<string, TransactionInfo>;
72
- readonly communicatorInfoMap: Map<string, CommunicatorInfo>;
72
+ readonly stepInfoMap: Map<string, StepInfo>;
73
73
  readonly procedureInfoMap: Map<string, ProcedureInfo>;
74
74
  readonly registeredOperations: Array<MethodRegistrationBase>;
75
75
  readonly pendingWorkflowMap: Map<string, Promise<unknown>>;
@@ -109,9 +109,9 @@ export declare class DBOSExecutor implements DBOSExecutorContext {
109
109
  txnInfo: TransactionInfo | undefined;
110
110
  clsInst: ConfiguredInstance | null;
111
111
  };
112
- getCommunicatorInfo(cf: Communicator<unknown[], unknown>): CommunicatorInfo | undefined;
113
- getCommunicatorInfoByNames(className: string, functionName: string, cfgName: string): {
114
- commInfo: CommunicatorInfo | undefined;
112
+ getStepInfo(cf: StepFunction<unknown[], unknown>): StepInfo | undefined;
113
+ getStepInfoByNames(className: string, functionName: string, cfgName: string): {
114
+ commInfo: StepInfo | undefined;
115
115
  clsInst: ConfiguredInstance | null;
116
116
  };
117
117
  getProcedureClassName(pf: StoredProcedure<unknown>): string;
@@ -125,7 +125,7 @@ export declare class DBOSExecutor implements DBOSExecutorContext {
125
125
  transaction<T extends unknown[], R>(txn: Transaction<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
126
126
  procedure<R>(proc: StoredProcedure<R>, params: WorkflowParams, ...args: unknown[]): Promise<R>;
127
127
  executeProcedure<R>(func: (client: PoolClient) => Promise<R>, config: TransactionConfig): Promise<R>;
128
- external<T extends unknown[], R>(commFn: Communicator<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
128
+ external<T extends unknown[], R>(stepFn: StepFunction<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
129
129
  send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
130
130
  /**
131
131
  * Wait for a workflow to emit an event, then return its value.
@@ -1 +1 @@
1
- {"version":3,"file":"dbos-executor.d.ts","sourceRoot":"","sources":["../../src/dbos-executor.ts"],"names":[],"mappings":";AAEA,OAAO,EAEL,QAAQ,EACR,cAAc,EAEd,cAAc,EACd,cAAc,EAGd,cAAc,EAEd,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAkB,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAClE,OAAO,EAAE,cAAc,EAAkD,MAAM,mBAAmB,CAAC;AAEnG,OAAO,EAGL,YAAY,EAEZ,gBA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AAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;CAQ3D"}
@@ -25,6 +25,7 @@ const serialize_error_1 = require("serialize-error");
25
25
  const utils_1 = require("./utils");
26
26
  const node_path_1 = __importDefault(require("node:path"));
27
27
  const lodash_1 = require("lodash");
28
+ const wfqueue_1 = require("./wfqueue");
28
29
  exports.dbosNull = {};
29
30
  exports.OperationType = {
30
31
  HANDLER: "handler",
@@ -63,7 +64,7 @@ class DBOSExecutor {
63
64
  ],
64
65
  ]);
65
66
  transactionInfoMap = new Map();
66
- communicatorInfoMap = new Map();
67
+ stepInfoMap = new Map();
67
68
  procedureInfoMap = new Map();
68
69
  registeredOperations = [];
69
70
  pendingWorkflowMap = new Map(); // Map from workflowUUID to workflow promise
@@ -222,7 +223,7 @@ class DBOSExecutor {
222
223
  this.#registerTransaction(ro);
223
224
  }
224
225
  else if (ro.commConfig) {
225
- this.#registerCommunicator(ro);
226
+ this.#registerStep(ro);
226
227
  }
227
228
  else if (ro.procConfig) {
228
229
  this.#registerProcedure(ro);
@@ -415,18 +416,18 @@ class DBOSExecutor {
415
416
  this.transactionInfoMap.set(tfn, txnInfo);
416
417
  this.logger.debug(`Registered transaction ${tfn}`);
417
418
  }
418
- #registerCommunicator(ro) {
419
+ #registerStep(ro) {
419
420
  const comm = ro.registeredFunction;
420
421
  const cfn = ro.className + '.' + ro.name;
421
- if (this.communicatorInfoMap.has(cfn)) {
422
+ if (this.stepInfoMap.has(cfn)) {
422
423
  throw new error_1.DBOSError(`Repeated Commmunicator name: ${cfn}`);
423
424
  }
424
425
  const commInfo = {
425
- communicator: comm,
426
+ step: comm,
426
427
  config: { ...ro.commConfig },
427
428
  };
428
- this.communicatorInfoMap.set(cfn, commInfo);
429
- this.logger.debug(`Registered communicator ${cfn}`);
429
+ this.stepInfoMap.set(cfn, commInfo);
430
+ this.logger.debug(`Registered step ${cfn}`);
430
431
  }
431
432
  #registerProcedure(ro) {
432
433
  const proc = ro.registeredFunction;
@@ -485,18 +486,18 @@ class DBOSExecutor {
485
486
  }
486
487
  return { txnInfo, clsInst: (0, decorators_1.getConfiguredInstance)(className, cfgName) };
487
488
  }
488
- getCommunicatorInfo(cf) {
489
+ getStepInfo(cf) {
489
490
  const cfname = (0, decorators_1.getRegisteredMethodClassName)(cf) + '.' + cf.name;
490
- return this.communicatorInfoMap.get(cfname);
491
+ return this.stepInfoMap.get(cfname);
491
492
  }
492
- getCommunicatorInfoByNames(className, functionName, cfgName) {
493
+ getStepInfoByNames(className, functionName, cfgName) {
493
494
  const cfname = className + '.' + functionName;
494
- let commInfo = this.communicatorInfoMap.get(cfname);
495
+ let commInfo = this.stepInfoMap.get(cfname);
495
496
  if (!commInfo && !className) {
496
- for (const [_wfn, cfr] of this.communicatorInfoMap) {
497
- if (functionName === cfr.communicator.name) {
497
+ for (const [_wfn, cfr] of this.stepInfoMap) {
498
+ if (functionName === cfr.step.name) {
498
499
  if (commInfo) {
499
- throw new error_1.DBOSError(`Recovered communicator function name '${functionName}' is ambiguous. The ambiguous name was recently added; remove it and recover pending workflows before re-adding the new function.`);
500
+ throw new error_1.DBOSError(`Recovered step function name '${functionName}' is ambiguous. The ambiguous name was recently added; remove it and recover pending workflows before re-adding the new function.`);
500
501
  }
501
502
  else {
502
503
  commInfo = cfr;
@@ -532,10 +533,11 @@ class DBOSExecutor {
532
533
  const wCtxt = new workflow_1.WorkflowContextImpl(this, params.parentCtx, workflowUUID, wConfig, wf.name, presetUUID, params.tempWfType, params.tempWfName);
533
534
  const internalStatus = {
534
535
  workflowUUID: workflowUUID,
535
- status: workflow_1.StatusString.PENDING,
536
+ status: (params.queueName !== undefined) ? workflow_1.StatusString.ENQUEUED : workflow_1.StatusString.PENDING,
536
537
  name: wf.name,
537
538
  className: wCtxt.isTempWorkflow ? "" : (0, decorators_1.getRegisteredMethodClassName)(wf),
538
539
  configName: params.configuredInstance?.name || "",
540
+ queueName: params.queueName,
539
541
  authenticatedUser: wCtxt.authenticatedUser,
540
542
  output: undefined,
541
543
  error: "",
@@ -555,8 +557,10 @@ class DBOSExecutor {
555
557
  }
556
558
  // Synchronously set the workflow's status to PENDING and record workflow inputs (for non single-transaction workflows).
557
559
  // We have to do it for all types of workflows because operation_outputs table has a foreign key constraint on workflow status table.
558
- if (wCtxt.tempWfOperationType !== TempWorkflowType.transaction
559
- && wCtxt.tempWfOperationType !== TempWorkflowType.procedure) {
560
+ if ((wCtxt.tempWfOperationType !== TempWorkflowType.transaction
561
+ && wCtxt.tempWfOperationType !== TempWorkflowType.procedure)
562
+ || params.queueName !== undefined) {
563
+ // TODO: Make this transactional (and with the queue step below)
560
564
  args = await this.systemDatabase.initWorkflowStatus(internalStatus, args);
561
565
  }
562
566
  const runWorkflow = async () => {
@@ -566,6 +570,12 @@ class DBOSExecutor {
566
570
  result = await wf.call(params.configuredInstance, wCtxt, ...args);
567
571
  internalStatus.output = result;
568
572
  internalStatus.status = workflow_1.StatusString.SUCCESS;
573
+ if (internalStatus.queueName) {
574
+ // Now... the workflow isn't certainly done.
575
+ // But waiting this long is for concurrency control anyway,
576
+ // so it is probably done enough.
577
+ await this.systemDatabase.dequeueWorkflow(workflowUUID, this.#getQueueByName(internalStatus.queueName));
578
+ }
569
579
  this.systemDatabase.bufferWorkflowOutput(workflowUUID, internalStatus);
570
580
  wCtxt.span.setStatus({ code: api_1.SpanStatusCode.OK });
571
581
  }
@@ -587,6 +597,9 @@ class DBOSExecutor {
587
597
  }
588
598
  internalStatus.error = utils_1.DBOSJSON.stringify((0, serialize_error_1.serializeError)(e));
589
599
  internalStatus.status = workflow_1.StatusString.ERROR;
600
+ if (internalStatus.queueName) {
601
+ await this.systemDatabase.dequeueWorkflow(workflowUUID, this.#getQueueByName(internalStatus.queueName));
602
+ }
590
603
  await this.systemDatabase.recordWorkflowError(workflowUUID, internalStatus);
591
604
  // TODO: Log errors, but not in the tests when they're expected.
592
605
  wCtxt.span.setStatus({ code: api_1.SpanStatusCode.ERROR, message: e.message });
@@ -608,19 +621,31 @@ class DBOSExecutor {
608
621
  }
609
622
  return result;
610
623
  };
611
- const workflowPromise = runWorkflow();
612
- // Need to await for the workflow and capture errors.
613
- const awaitWorkflowPromise = workflowPromise
614
- .catch((error) => {
615
- this.logger.debug("Captured error in awaitWorkflowPromise: " + error);
616
- })
617
- .finally(() => {
618
- // Remove itself from pending workflow map.
619
- this.pendingWorkflowMap.delete(workflowUUID);
620
- });
621
- this.pendingWorkflowMap.set(workflowUUID, awaitWorkflowPromise);
622
- // Return the normal handle that doesn't capture errors.
623
- return new workflow_1.InvokedHandle(this.systemDatabase, workflowPromise, workflowUUID, wf.name, callerUUID, callerFunctionID);
624
+ if (params.queueName === undefined || params.executeWorkflow) {
625
+ const workflowPromise = runWorkflow();
626
+ // Need to await for the workflow and capture errors.
627
+ const awaitWorkflowPromise = workflowPromise
628
+ .catch((error) => {
629
+ this.logger.debug("Captured error in awaitWorkflowPromise: " + error);
630
+ })
631
+ .finally(() => {
632
+ // Remove itself from pending workflow map.
633
+ this.pendingWorkflowMap.delete(workflowUUID);
634
+ });
635
+ this.pendingWorkflowMap.set(workflowUUID, awaitWorkflowPromise);
636
+ // Return the normal handle that doesn't capture errors.
637
+ return new workflow_1.InvokedHandle(this.systemDatabase, workflowPromise, workflowUUID, wf.name, callerUUID, callerFunctionID);
638
+ }
639
+ else {
640
+ await this.systemDatabase.enqueueWorkflow(workflowUUID, this.#getQueueByName(params.queueName));
641
+ return new workflow_1.RetrievedHandle(this.systemDatabase, workflowUUID, callerUUID, callerFunctionID);
642
+ }
643
+ }
644
+ #getQueueByName(name) {
645
+ const q = wfqueue_1.wfQueueRunner.wfQueuesByName.get(name);
646
+ if (!q)
647
+ throw new error_1.DBOSNotRegisteredError(`Workflow queue '${name}' does is not defined.`);
648
+ return q;
624
649
  }
625
650
  /**
626
651
  * DEBUG MODE workflow execution, skipping all the recording
@@ -707,17 +732,17 @@ class DBOSExecutor {
707
732
  client.release();
708
733
  }
709
734
  }
710
- async external(commFn, params, ...args) {
735
+ async external(stepFn, params, ...args) {
711
736
  // Create a workflow and call external.
712
737
  const temp_workflow = async (ctxt, ...args) => {
713
738
  const ctxtImpl = ctxt;
714
- return await ctxtImpl.external(commFn, params.configuredInstance ?? null, ...args);
739
+ return await ctxtImpl.external(stepFn, params.configuredInstance ?? null, ...args);
715
740
  };
716
741
  return (await this.workflow(temp_workflow, {
717
742
  ...params,
718
743
  tempWfType: TempWorkflowType.external,
719
- tempWfName: (0, decorators_1.getRegisteredMethodName)(commFn),
720
- tempWfClass: (0, decorators_1.getRegisteredMethodClassName)(commFn),
744
+ tempWfName: (0, decorators_1.getRegisteredMethodName)(stepFn),
745
+ tempWfClass: (0, decorators_1.getRegisteredMethodClassName)(stepFn),
721
746
  }, ...args)).getResult();
722
747
  }
723
748
  async send(destinationUUID, message, topic, idempotencyKey) {
@@ -782,8 +807,12 @@ class DBOSExecutor {
782
807
  // If starting a new workflow, assign a new UUID. Otherwise, use the workflow's original UUID.
783
808
  const workflowStartUUID = startNewWorkflow ? undefined : workflowUUID;
784
809
  if (wfInfo) {
810
+ return this.workflow(wfInfo.workflow, {
811
+ workflowUUID: workflowStartUUID, parentCtx: parentCtx, configuredInstance: configuredInst, recovery: true,
812
+ queueName: wfStatus.queueName, executeWorkflow: true
813
+ },
785
814
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
786
- return this.workflow(wfInfo.workflow, { workflowUUID: workflowStartUUID, parentCtx: parentCtx, configuredInstance: configuredInst, recovery: true }, ...inputs);
815
+ ...inputs);
787
816
  }
788
817
  // Should be temporary workflows. Parse the name of the workflow.
789
818
  const wfName = wfStatus.workflowName;
@@ -813,17 +842,17 @@ class DBOSExecutor {
813
842
  clsinst = clsInst;
814
843
  }
815
844
  else if (nameArr[1] === TempWorkflowType.external) {
816
- const { commInfo, clsInst } = this.getCommunicatorInfoByNames(wfStatus.workflowClassName, nameArr[2], wfStatus.workflowConfigName);
845
+ const { commInfo, clsInst } = this.getStepInfoByNames(wfStatus.workflowClassName, nameArr[2], wfStatus.workflowConfigName);
817
846
  if (!commInfo) {
818
- this.logger.error(`Cannot find communicator info for UUID ${workflowUUID}, name ${nameArr[2]}`);
847
+ this.logger.error(`Cannot find step info for UUID ${workflowUUID}, name ${nameArr[2]}`);
819
848
  throw new error_1.DBOSNotRegisteredError(nameArr[2]);
820
849
  }
821
850
  tempWfType = TempWorkflowType.external;
822
- tempWfName = (0, decorators_1.getRegisteredMethodName)(commInfo.communicator);
823
- tempWfClass = (0, decorators_1.getRegisteredMethodClassName)(commInfo.communicator);
851
+ tempWfName = (0, decorators_1.getRegisteredMethodName)(commInfo.step);
852
+ tempWfClass = (0, decorators_1.getRegisteredMethodClassName)(commInfo.step);
824
853
  temp_workflow = async (ctxt, ...args) => {
825
854
  const ctxtImpl = ctxt;
826
- return await ctxtImpl.external(commInfo.communicator, clsInst, ...args);
855
+ return await ctxtImpl.external(commInfo.step, clsInst, ...args);
827
856
  };
828
857
  clsinst = clsInst;
829
858
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dbos-executor.js","sourceRoot":"","sources":["../../src/dbos-executor.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAuD;AACvD,mCAA+J;AAC/J,yCAYoB;AAEpB,+CAA+E;AAE/E,qDAA2D;AAC3D,+CAA4C;AAC5C,2CAA0D;AAC1D,qDAA0D;AAE1D,2BAAkE;AAClE,uDAAmG;AACnG,+BAAoC;AACpC,mDAQyB;AACzB,6CAA4P;AAC5P,4CAAoD;AACpD,gDAAkC;AAClC,uCAAyD;AAEzD,8DAAiE;AACjE,qDAAiD;AACjD,mCAA4C;AAC5C,0DAA6B;AAK7B,mCAA6B;AAIhB,QAAA,QAAQ,GAAa,EAAE,CAAC;AA8CxB,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;C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KAAK,KAAK,OAAO,YAAY,EAAE,CAAC;YAClE,MAAM,IAAI,8BAAsB,CAAC,GAAG,EAAE,OAAO,YAAY,EAAE,OAAO,KAAK,CAAC,CAAC;QAC3E,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;;AAj+BH,oCAk+BC"}
@@ -83,7 +83,7 @@ workflowCommands
83
83
  .option('-u, --user <string>', 'Retrieve workflows run by this user')
84
84
  .option('-s, --start-time <string>', 'Retrieve workflows starting after this timestamp (ISO 8601 format)')
85
85
  .option('-e, --end-time <string>', 'Retrieve workflows starting before this timestamp (ISO 8601 format)')
86
- .option('-S, --status <string>', 'Retrieve workflows with this status (PENDING, SUCCESS, ERROR, RETRIES_EXCEEDED, or CANCELLED)')
86
+ .option('-S, --status <string>', 'Retrieve workflows with this status (PENDING, SUCCESS, ERROR, RETRIES_EXCEEDED, ENQUEUED, or CANCELLED)')
87
87
  .option('-v, --application-version <string>', 'Retrieve workflows with this application version')
88
88
  .option('--request', 'Retrieve workflow request information')
89
89
  .option("-d, --appDir <string>", "Specify the application root directory")
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";;;;AACA,uCAA2D;AAC3D,qCAA2F;AAC3F,yCAAoC;AAEpC,mCAAwC;AACxC,uCAAuD;AACvD,4CAAiD;AACjD,sDAA4D;AAC5D,sDAA2D;AAC3D,2CAAwC;AACxC,+DAAsG;AACtG,0BAAqD;AACrD,+CAAoC;AAEpC,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AA4B9B,iEAAiE;AACjE,MAAM,WAAW,GAAG,OAAO,CAAC,uBAAuB,CAAwB,CAAC;AAC5E,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAErC,OAAO;KACJ,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,kBAAkB,CAAC;KAC/B,MAAM,CAAC,qBAAqB,EAAE,yB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jC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,SAAS,GAAG,CAAC,IAAY,EAAE,EAAE;YAC3B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC,CAAC;IACJ,CAAC;IACD,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,CAAC;QACH,UAAU,GAAG,MAAM,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,SAAS,CAAC,UAAU,CAAC,CAAC;AACxB,CAAC;AAxBD,8BAwBC"}
@@ -1,6 +1,6 @@
1
1
  import { GlobalLogger } from "../telemetry/logs";
2
2
  import { ConfigFile } from "./config";
3
- export declare function migrate(configFile: ConfigFile, logger: GlobalLogger): Promise<1 | 0>;
3
+ export declare function migrate(configFile: ConfigFile, logger: GlobalLogger): Promise<0 | 1>;
4
4
  export declare function checkDatabaseExists(configFile: ConfigFile, logger: GlobalLogger): Promise<boolean>;
5
- export declare function rollbackMigration(configFile: ConfigFile, logger: GlobalLogger): 1 | 0;
5
+ export declare function rollbackMigration(configFile: ConfigFile, logger: GlobalLogger): 0 | 1;
6
6
  //# sourceMappingURL=migrate.d.ts.map
@@ -15,6 +15,7 @@ export declare class DBOSRuntime {
15
15
  private dbosExec;
16
16
  private servers;
17
17
  private scheduler;
18
+ private wfQueueRunner;
18
19
  constructor(dbosConfig: DBOSConfig, runtimeConfig: DBOSRuntimeConfig);
19
20
  /**
20
21
  * Initialize the runtime and start the server
@@ -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,CAA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E,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,QAAQ,CAA6B;IAC7C,OAAO,CAAC,OAAO,CAAyD;IACxE,OAAO,CAAC,SAAS,CAA8B;IAC/C,OAAO,CAAC,aAAa,CAA8B;gBAEvC,UAAU,EAAE,UAAU,EAAmB,aAAa,EAAE,iBAAiB;IAMrF;;OAEG;IACG,YAAY;IAqClB;;OAEG;WACU,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAyBlE,SAAS,IAAI,IAAI;IAOjB;;OAEG;IACG,OAAO;CAad"}
@@ -35,6 +35,7 @@ const error_1 = require("../error");
35
35
  const node_path_1 = __importDefault(require("node:path"));
36
36
  const url_1 = require("url");
37
37
  const scheduler_1 = require("../scheduler/scheduler");
38
+ const wfqueue_1 = require("../wfqueue");
38
39
  exports.defaultEntryPoint = "dist/operations.js";
39
40
  class DBOS {
40
41
  static globalLogger;
@@ -47,6 +48,7 @@ class DBOSRuntime {
47
48
  dbosExec = null;
48
49
  servers;
49
50
  scheduler = null;
51
+ wfQueueRunner = null;
50
52
  constructor(dbosConfig, runtimeConfig) {
51
53
  this.runtimeConfig = runtimeConfig;
52
54
  // Initialize workflow executor.
@@ -69,6 +71,8 @@ class DBOSRuntime {
69
71
  this.scheduler = new scheduler_1.DBOSScheduler(this.dbosExec);
70
72
  this.scheduler.initScheduler();
71
73
  this.scheduler.logRegisteredSchedulerEndpoints();
74
+ wfqueue_1.wfQueueRunner.logRegisteredEndpoints(this.dbosExec);
75
+ this.wfQueueRunner = wfqueue_1.wfQueueRunner.dispatchLoop(this.dbosExec);
72
76
  for (const evtRcvr of this.dbosExec.eventReceivers) {
73
77
  await evtRcvr.initialize(this.dbosExec);
74
78
  }
@@ -128,6 +132,8 @@ class DBOSRuntime {
128
132
  */
129
133
  async destroy() {
130
134
  await this.scheduler?.destroyScheduler();
135
+ wfqueue_1.wfQueueRunner.stop();
136
+ await this.wfQueueRunner;
131
137
  for (const evtRcvr of this.dbosExec?.eventReceivers || []) {
132
138
  await evtRcvr.destroy();
133
139
  }