@dbos-inc/dbos-sdk 1.16.2-preview → 1.16.4-preview

Sign up to get free protection for your applications and to get access to all the features.
@@ -123,7 +123,7 @@ export declare class DBOSExecutor implements DBOSExecutorContext {
123
123
  * It runs to completion all pending workflows that were executing when the previous executor failed.
124
124
  */
125
125
  recoverPendingWorkflows(executorIDs?: string[]): Promise<WorkflowHandle<unknown>[]>;
126
- executeWorkflowUUID(workflowUUID: string): Promise<WorkflowHandle<unknown>>;
126
+ executeWorkflowUUID(workflowUUID: string, startNewWorkflow?: boolean): Promise<WorkflowHandle<unknown>>;
127
127
  /**
128
128
  * Periodically flush the workflow output buffer to the system database.
129
129
  */
@@ -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,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC/D,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,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,cAAc,EAAkD,MAAM,mBAAmB,CAAC;AAEnG,OAAO,EAGL,YAAY,EAEZ,gBAAgB,EAEjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAA2J,kBAAkB,EAA2B,MAAM,cAAc,CAAC;AAS5P,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAA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CAAC,OAAO,CAAC,EAAE,CAAC;IAuB9F,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,GAAE,OAAe,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IA8FpH;;OAEG;IACG,oBAAoB;IAQpB,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;IAiDhD,qBAAqB;IAcrB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;CAQ3D"}
@@ -619,7 +619,7 @@ class DBOSExecutor {
619
619
  }
620
620
  return handlerArray;
621
621
  }
622
- async executeWorkflowUUID(workflowUUID) {
622
+ async executeWorkflowUUID(workflowUUID, startNewWorkflow = false) {
623
623
  const wfStatus = await this.systemDatabase.getWorkflowStatus(workflowUUID);
624
624
  const inputs = await this.systemDatabase.getWorkflowInputs(workflowUUID);
625
625
  if (!inputs || !wfStatus) {
@@ -628,9 +628,11 @@ class DBOSExecutor {
628
628
  }
629
629
  const parentCtx = this.#getRecoveryContext(workflowUUID, wfStatus);
630
630
  const { wfInfo, configuredInst } = this.getWorkflowInfoByStatus(wfStatus);
631
+ // If starting a new workflow, assign a new UUID. Otherwise, use the workflow's original UUID.
632
+ const workflowStartUUID = startNewWorkflow ? undefined : workflowUUID;
631
633
  if (wfInfo) {
632
634
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
633
- return this.workflow(wfInfo.workflow, { workflowUUID: workflowUUID, parentCtx: parentCtx, configuredInstance: configuredInst, recovery: true }, ...inputs);
635
+ return this.workflow(wfInfo.workflow, { workflowUUID: workflowStartUUID, parentCtx: parentCtx, configuredInstance: configuredInst, recovery: true }, ...inputs);
634
636
  }
635
637
  // Should be temporary workflows. Parse the name of the workflow.
636
638
  const wfName = wfStatus.workflowName;
@@ -641,12 +643,18 @@ class DBOSExecutor {
641
643
  }
642
644
  let temp_workflow;
643
645
  let clsinst = null;
646
+ let tempWfType;
647
+ let tempWfName;
648
+ let tempWfClass;
644
649
  if (nameArr[1] === TempWorkflowType.transaction) {
645
650
  const { txnInfo, clsInst } = this.getTransactionInfoByNames(wfStatus.workflowClassName, nameArr[2], wfStatus.workflowConfigName);
646
651
  if (!txnInfo) {
647
652
  this.logger.error(`Cannot find transaction info for UUID ${workflowUUID}, name ${nameArr[2]}`);
648
653
  throw new error_1.DBOSNotRegisteredError(nameArr[2]);
649
654
  }
655
+ tempWfType = TempWorkflowType.transaction;
656
+ tempWfName = (0, decorators_1.getRegisteredMethodName)(txnInfo.transaction);
657
+ tempWfClass = (0, decorators_1.getRegisteredMethodClassName)(txnInfo.transaction);
650
658
  temp_workflow = async (ctxt, ...args) => {
651
659
  const ctxtImpl = ctxt;
652
660
  return await ctxtImpl.transaction(txnInfo.transaction, clsInst, ...args);
@@ -659,6 +667,9 @@ class DBOSExecutor {
659
667
  this.logger.error(`Cannot find communicator info for UUID ${workflowUUID}, name ${nameArr[2]}`);
660
668
  throw new error_1.DBOSNotRegisteredError(nameArr[2]);
661
669
  }
670
+ tempWfType = TempWorkflowType.external;
671
+ tempWfName = (0, decorators_1.getRegisteredMethodName)(commInfo.communicator);
672
+ tempWfClass = (0, decorators_1.getRegisteredMethodClassName)(commInfo.communicator);
662
673
  temp_workflow = async (ctxt, ...args) => {
663
674
  const ctxtImpl = ctxt;
664
675
  return await ctxtImpl.external(commInfo.communicator, clsInst, ...args);
@@ -666,6 +677,7 @@ class DBOSExecutor {
666
677
  clsinst = clsInst;
667
678
  }
668
679
  else if (nameArr[1] === TempWorkflowType.send) {
680
+ tempWfType = TempWorkflowType.send;
669
681
  temp_workflow = async (ctxt, ...args) => {
670
682
  return await ctxt.send(args[0], args[1], args[2]); // id, value, topic
671
683
  };
@@ -676,7 +688,7 @@ class DBOSExecutor {
676
688
  throw new error_1.DBOSNotRegisteredError(wfName);
677
689
  }
678
690
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
679
- return this.workflow(temp_workflow, { workflowUUID: workflowUUID, parentCtx: parentCtx ?? undefined, configuredInstance: clsinst, recovery: true }, ...inputs);
691
+ return this.workflow(temp_workflow, { workflowUUID: workflowStartUUID, parentCtx: parentCtx ?? undefined, configuredInstance: clsinst, recovery: true, tempWfType, tempWfClass, tempWfName }, ...inputs);
680
692
  }
681
693
  // NOTE: this creates a new span, it does not inherit the span from the original workflow
682
694
  #getRecoveryContext(workflowUUID, status) {
@@ -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;AAIpB,qDAA2D;AAC3D,+CAA4C;AAC5C,2CAA0D;AAC1D,qDAA0D;AAG1D,uDAAmG;AACnG,+BAAoC;AACpC,mDAOyB;AACzB,6CAA4P;AAC5P,4CAAoD;AACpD,gDAAkC;AAClC,uCAAyD;AAEzD,8DAAiE;AACjE,qDAAiD;AACjD,mCAA4C;AAC5C,0DAA6B;AAG7B,mCAA6B;AAIhB,QAAA,QAAQ,GAAa,EAAE,CAAC;AAwCxB,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;CACpB,CAAC;AAEX,MAAM,gBAAgB,GAAG;IACvB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;AAEX,MAAa,YAAY;IAiDF;IAhDrB,WAAW,CAAU;IACrB,gBAAgB;IAChB,YAAY,GAAiB,IAA+B,CAAC;IAC7D,kBAAkB;IACT,cAAc,CAAiB;IAExC,oGAAoG;IACpG,MAAM,CAAU,gBAAgB,GAAG,eAAe,CAAC;IAE1C,eAAe,GAA8B,IAAI,GAAG,CAAC;QAC5D,+DAA+D;QAC/D;YACE,YAAY,CAAC,gBAAgB;YAC7B;gBACE,QAAQ,EAA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CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,SAAS,CAAI,GAAW,EAAE,YAAgB;QACxC,MAAM,KAAK,GAAG,IAAA,YAAG,EAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC;QAC9D,sGAAsG;QACtG,IAAI,KAAK,IAAI,YAAY,IAAI,OAAO,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;;AA5yBH,oCA6yBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAuD,MAAM,UAAU,CAAC;AAK3F,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWjD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAgFD,wBAAsB,SAAS,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,iBA2BjH"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAuD,MAAM,UAAU,CAAC;AAK3F,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAcjD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAmKD,wBAAsB,SAAS,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,iBA2BjH"}
@@ -11,6 +11,9 @@ const logs_1 = require("../telemetry/logs");
11
11
  const collector_1 = require("../telemetry/collector");
12
12
  const exporters_1 = require("../telemetry/exporters");
13
13
  const configure_1 = require("./configure");
14
+ const workflow_management_1 = require("./workflow_management");
15
+ const __1 = require("..");
16
+ const node_process_1 = require("node:process");
14
17
  const program = new commander_1.Command();
15
18
  // eslint-disable-next-line @typescript-eslint/no-require-imports
16
19
  const packageJson = require("../../../package.json");
@@ -65,6 +68,81 @@ program
65
68
  program
66
69
  .command('rollback')
67
70
  .action(async () => { await runAndLog(migrate_1.rollbackMigration); });
71
+ /////////////////////////
72
+ /* WORKFLOW MANAGEMENT */
73
+ /////////////////////////
74
+ const workflowCommands = program.command("workflow").alias("workflows").alias("wf").description("Manage DBOS workflows");
75
+ workflowCommands
76
+ .command('list')
77
+ .description('List workflows from your application')
78
+ .option('-l, --limit <number>', 'Limit the results returned', "10")
79
+ .option('-u, --user <string>', 'Retrieve workflows run by this user')
80
+ .option('-s, --start-time <string>', 'Retrieve workflows starting after this timestamp (ISO 8601 format)')
81
+ .option('-e, --end-time <string>', 'Retrieve workflows starting before this timestamp (ISO 8601 format)')
82
+ .option('-S, --status <string>', 'Retrieve workflows with this status (PENDING, SUCCESS, ERROR, RETRIES_EXCEEDED, or CANCELLED)')
83
+ .option('-v, --application-version <string>', 'Retrieve workflows with this application version')
84
+ .option('--request', 'Retrieve workflow request information')
85
+ .option("-d, --appDir <string>", "Specify the application root directory")
86
+ .action(async (options) => {
87
+ const [dbosConfig, _] = (0, config_1.parseConfigFile)(options);
88
+ if (options.status && !Object.values(__1.StatusString).includes(options.status)) {
89
+ console.error("Invalid status: ", options.status);
90
+ (0, node_process_1.exit)(1);
91
+ }
92
+ const input = {
93
+ limit: Number(options.limit),
94
+ authenticatedUser: options.user,
95
+ startTime: options.startTime,
96
+ endTime: options.endTime,
97
+ status: options.status,
98
+ applicationVersion: options.applicationVersion,
99
+ };
100
+ const output = await (0, workflow_management_1.listWorkflows)(dbosConfig, input, options.request);
101
+ console.log(JSON.stringify(output));
102
+ });
103
+ workflowCommands
104
+ .command('get')
105
+ .description('Retrieve the status of a workflow')
106
+ .argument("<uuid>", "Target workflow UUID")
107
+ .option("-d, --appDir <string>", "Specify the application root directory")
108
+ .option('--request', 'Retrieve workflow request information')
109
+ .action(async (uuid, options) => {
110
+ const [dbosConfig, _] = (0, config_1.parseConfigFile)(options);
111
+ const output = await (0, workflow_management_1.getWorkflow)(dbosConfig, uuid, options.request);
112
+ console.log(JSON.stringify(output));
113
+ });
114
+ workflowCommands
115
+ .command('cancel')
116
+ .description('Cancel a workflow so it is no longer automatically retried or restarted')
117
+ .argument("<uuid>", "Target workflow UUID")
118
+ .option("-d, --appDir <string>", "Specify the application root directory")
119
+ .action(async (uuid, options) => {
120
+ const [dbosConfig, _] = (0, config_1.parseConfigFile)(options);
121
+ await (0, workflow_management_1.cancelWorkflow)(dbosConfig, uuid);
122
+ });
123
+ workflowCommands
124
+ .command('resume')
125
+ .description('Resume a workflow from the last step it executed, keeping its UUID')
126
+ .argument("<uuid>", "Target workflow UUID")
127
+ .option("-d, --appDir <string>", "Specify the application root directory")
128
+ .action(async (uuid, options) => {
129
+ const [dbosConfig, runtimeConfig] = (0, config_1.parseConfigFile)(options);
130
+ const output = await (0, workflow_management_1.reattemptWorkflow)(dbosConfig, runtimeConfig, uuid, false);
131
+ console.log(`Workflow output: ${JSON.stringify(output)}`);
132
+ });
133
+ workflowCommands
134
+ .command('restart')
135
+ .description('Restart a workflow from the beginning with a new UUID')
136
+ .argument("<uuid>", "Target workflow UUID")
137
+ .option("-d, --appDir <string>", "Specify the application root directory")
138
+ .action(async (uuid, options) => {
139
+ const [dbosConfig, runtimeConfig] = (0, config_1.parseConfigFile)(options);
140
+ const output = await (0, workflow_management_1.reattemptWorkflow)(dbosConfig, runtimeConfig, uuid, true);
141
+ console.log(`Workflow output: ${JSON.stringify(output)}`);
142
+ });
143
+ /////////////
144
+ /* PARSING */
145
+ /////////////
68
146
  program.parse(process.argv);
69
147
  // If no arguments provided, display help by default
70
148
  if (!process.argv.slice(2).length) {
@@ -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;AAExC,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AA0B9B,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,yBAAyB,CAAC;KACxD,MAAM,CAAC,yBAAyB,EAAE,mBAAmB,CAAC;KACtD,MAAM,CAAC,2BAA2B,EAAE,2CAA2C,CAAC;KAChF,MAAM,CAAC,uBAAuB,EAAE,wCAAw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,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;AA3BD,8BA2BC"}
@@ -0,0 +1,16 @@
1
+ import { DBOSConfig, GetWorkflowsInput } from "..";
2
+ import { WorkflowStatus } from "../workflow";
3
+ import { HTTPRequest } from "../context";
4
+ import { DBOSRuntimeConfig } from "./runtime";
5
+ export declare function listWorkflows(config: DBOSConfig, input: GetWorkflowsInput, getRequest: boolean): Promise<{}[]>;
6
+ export type WorkflowInformation = Omit<WorkflowStatus, 'request'> & {
7
+ workflowUUID: string;
8
+ input?: unknown[];
9
+ output?: unknown;
10
+ error?: unknown;
11
+ request?: HTTPRequest;
12
+ };
13
+ export declare function getWorkflow(config: DBOSConfig, workflowUUID: string, getRequest: boolean): Promise<{}>;
14
+ export declare function cancelWorkflow(config: DBOSConfig, workflowUUID: string): Promise<void>;
15
+ export declare function reattemptWorkflow(config: DBOSConfig, runtimeConfig: DBOSRuntimeConfig | null, workflowUUID: string, startNewWorkflow: boolean): Promise<unknown>;
16
+ //# sourceMappingURL=workflow_management.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow_management.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/workflow_management.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAgB,MAAM,IAAI,CAAC;AAGjE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAe,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG3D,wBAAsB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,OAAO,iBAMpG;AAED,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IAClE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAA;AAyBD,wBAAsB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,eAK9F;AAGD,wBAAsB,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAI5E;AAED,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,GAAG,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,oBAcnJ"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reattemptWorkflow = exports.cancelWorkflow = exports.getWorkflow = exports.listWorkflows = void 0;
4
+ const winston_1 = require("winston");
5
+ const __1 = require("..");
6
+ const system_database_1 = require("../system_database");
7
+ const dbos_executor_1 = require("../dbos-executor");
8
+ const runtime_1 = require("./runtime");
9
+ const decorators_1 = require("../decorators");
10
+ async function listWorkflows(config, input, getRequest) {
11
+ const systemDatabase = new system_database_1.PostgresSystemDatabase(config.poolConfig, config.system_database, (0, winston_1.createLogger)());
12
+ const workflowUUIDs = (await systemDatabase.getWorkflows(input)).workflowUUIDs.reverse(); // Reverse so most recent entries are printed last
13
+ const workflowInfos = await Promise.all(workflowUUIDs.map(async (i) => await getWorkflowInfo(systemDatabase, i, getRequest)));
14
+ await systemDatabase.destroy();
15
+ return workflowInfos;
16
+ }
17
+ exports.listWorkflows = listWorkflows;
18
+ async function getWorkflowInfo(systemDatabase, workflowUUID, getRequest) {
19
+ const info = await systemDatabase.getWorkflowStatus(workflowUUID);
20
+ info.workflowUUID = workflowUUID;
21
+ if (info === null) {
22
+ return {};
23
+ }
24
+ const input = await systemDatabase.getWorkflowInputs(workflowUUID);
25
+ if (input !== null) {
26
+ info.input = input;
27
+ }
28
+ if (info.status === __1.StatusString.SUCCESS) {
29
+ const result = await systemDatabase.getWorkflowResult(workflowUUID);
30
+ info.output = result;
31
+ }
32
+ else if (info.status === __1.StatusString.ERROR) {
33
+ const result = await systemDatabase.getWorkflowResult(workflowUUID);
34
+ info.error = result;
35
+ }
36
+ if (!getRequest) {
37
+ delete info.request;
38
+ }
39
+ return info;
40
+ }
41
+ async function getWorkflow(config, workflowUUID, getRequest) {
42
+ const systemDatabase = new system_database_1.PostgresSystemDatabase(config.poolConfig, config.system_database, (0, winston_1.createLogger)());
43
+ const info = await getWorkflowInfo(systemDatabase, workflowUUID, getRequest);
44
+ await systemDatabase.destroy();
45
+ return info;
46
+ }
47
+ exports.getWorkflow = getWorkflow;
48
+ // Cancelling a workflow prevents it from being automatically recovered, but active executions are not halted.
49
+ async function cancelWorkflow(config, workflowUUID) {
50
+ const systemDatabase = new system_database_1.PostgresSystemDatabase(config.poolConfig, config.system_database, (0, winston_1.createLogger)());
51
+ await systemDatabase.setWorkflowStatus(workflowUUID, __1.StatusString.CANCELLED, false);
52
+ await systemDatabase.destroy();
53
+ }
54
+ exports.cancelWorkflow = cancelWorkflow;
55
+ async function reattemptWorkflow(config, runtimeConfig, workflowUUID, startNewWorkflow) {
56
+ const dbosExec = new dbos_executor_1.DBOSExecutor(config);
57
+ const classes = runtimeConfig !== null ? await runtime_1.DBOSRuntime.loadClasses(runtimeConfig.entrypoints) : [];
58
+ for (const cls of (0, decorators_1.getAllRegisteredClasses)()) {
59
+ if (!classes.includes(cls))
60
+ classes.push(cls);
61
+ }
62
+ await dbosExec.init(classes);
63
+ if (!startNewWorkflow) {
64
+ await dbosExec.systemDatabase.setWorkflowStatus(workflowUUID, __1.StatusString.PENDING, true);
65
+ }
66
+ const handle = await dbosExec.executeWorkflowUUID(workflowUUID, startNewWorkflow);
67
+ const output = await handle.getResult();
68
+ await dbosExec.destroy();
69
+ return output;
70
+ }
71
+ exports.reattemptWorkflow = reattemptWorkflow;
72
+ //# sourceMappingURL=workflow_management.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow_management.js","sourceRoot":"","sources":["../../../src/dbos-runtime/workflow_management.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,0BAAiE;AACjE,wDAA4E;AAI5E,oDAAgD;AAChD,uCAA2D;AAC3D,8CAAwD;AAEjD,KAAK,UAAU,aAAa,CAAC,MAAkB,EAAE,KAAwB,EAAE,UAAmB;IACnG,MAAM,cAAc,GAAG,IAAI,wCAAsB,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,eAAe,EAAE,IAAA,sBAAY,GAA6B,CAAC,CAAA;IACvI,MAAM,aAAa,GAAG,CAAC,MAAM,cAAc,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,kDAAkD;IAC5I,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,eAAe,CAAC,cAAc,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;IAC7H,MAAM,cAAc,CAAC,OAAO,EAAE,CAAC;IAC/B,OAAO,aAAa,CAAC;AACvB,CAAC;AAND,sCAMC;AAUD,KAAK,UAAU,eAAe,CAAC,cAA8B,EAAE,YAAoB,EAAE,UAAmB;IACtG,MAAM,IAAI,GAAG,MAAM,cAAc,CAAC,iBAAiB,CAAC,YAAY,CAAwB,CAAC;IACzF,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACjC,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAClB,OAAO,EAAE,CAAC;IACZ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./workflow";
3
+ import { GetWorkflowsInput, GetWorkflowsOutput, StatusString, WorkflowStatus } from "./workflow";
4
4
  import { HTTPRequest } from "./context";
5
5
  import { GlobalLogger as Logger } from "./telemetry/logs";
6
6
  import { Knex } from "knex";
@@ -20,6 +20,7 @@ export interface SystemDatabase {
20
20
  recordOperationError(workflowUUID: string, functionID: number, error: Error): Promise<void>;
21
21
  getWorkflowStatus(workflowUUID: string, callerUUID?: string, functionID?: number): Promise<WorkflowStatus | null>;
22
22
  getWorkflowResult<R>(workflowUUID: string): Promise<R>;
23
+ setWorkflowStatus(workflowUUID: string, status: typeof StatusString[keyof typeof StatusString], resetRecoveryAttempts: boolean): Promise<void>;
23
24
  sleepms(workflowUUID: string, functionID: number, duration: number): Promise<void>;
24
25
  send<T>(workflowUUID: string, functionID: number, destinationUUID: string, message: T, topic?: string): Promise<void>;
25
26
  recv<T>(workflowUUID: string, functionID: number, topic?: string, timeoutSeconds?: number): Promise<T | null>;
@@ -95,6 +96,7 @@ export declare class PostgresSystemDatabase implements SystemDatabase {
95
96
  recv<T>(workflowUUID: string, functionID: number, topic?: string, timeoutSeconds?: number): Promise<T | null>;
96
97
  setEvent<T>(workflowUUID: string, functionID: number, key: string, message: T): Promise<void>;
97
98
  getEvent<T>(workflowUUID: string, key: string, timeoutSeconds: number, callerUUID?: string, functionID?: number): Promise<T | null>;
99
+ setWorkflowStatus(workflowUUID: string, status: typeof StatusString[keyof typeof StatusString], resetRecoveryAttempts: boolean): Promise<void>;
98
100
  getWorkflowStatus(workflowUUID: string, callerUUID?: string, functionID?: number): Promise<WorkflowStatus | null>;
99
101
  getWorkflowResult<R>(workflowUUID: string): Promise<R>;
100
102
  /**
@@ -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,E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IAY1E,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA6B1E"}
@@ -521,6 +521,12 @@ class PostgresSystemDatabase {
521
521
  }
522
522
  return value;
523
523
  }
524
+ async setWorkflowStatus(workflowUUID, status, resetRecoveryAttempts) {
525
+ await this.pool.query(`UPDATE ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status SET status=$1 WHERE workflow_uuid=$2`, [status, workflowUUID]);
526
+ if (resetRecoveryAttempts) {
527
+ await this.pool.query(`UPDATE ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status SET recovery_attempts=0 WHERE workflow_uuid=$1`, [workflowUUID]);
528
+ }
529
+ }
524
530
  async getWorkflowStatus(workflowUUID, callerUUID, functionID) {
525
531
  // Check if the operation has been done before for OAOO (only do this inside a workflow).
526
532
  if (callerUUID !== undefined && functionID !== undefined) {