@dbos-inc/dbos-sdk 0.7.25-preview → 0.8.12-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. package/dist/src/cloud-cli/applications/configure.d.ts.map +1 -1
  2. package/dist/src/cloud-cli/applications/configure.js +12 -2
  3. package/dist/src/cloud-cli/applications/configure.js.map +1 -1
  4. package/dist/src/cloud-cli/applications/delete-app.js +1 -1
  5. package/dist/src/cloud-cli/applications/delete-app.js.map +1 -1
  6. package/dist/src/cloud-cli/applications/deploy-app-code.d.ts.map +1 -1
  7. package/dist/src/cloud-cli/applications/deploy-app-code.js +10 -2
  8. package/dist/src/cloud-cli/applications/deploy-app-code.js.map +1 -1
  9. package/dist/src/cloud-cli/applications/get-app-logs.js +1 -1
  10. package/dist/src/cloud-cli/applications/get-app-logs.js.map +1 -1
  11. package/dist/src/cloud-cli/applications/list-apps.js +1 -1
  12. package/dist/src/cloud-cli/applications/list-apps.js.map +1 -1
  13. package/dist/src/cloud-cli/applications/register-app.js +1 -1
  14. package/dist/src/cloud-cli/applications/register-app.js.map +1 -1
  15. package/dist/src/cloud-cli/applications/update-app.d.ts.map +1 -1
  16. package/dist/src/cloud-cli/applications/update-app.js +3 -2
  17. package/dist/src/cloud-cli/applications/update-app.js.map +1 -1
  18. package/dist/src/cloud-cli/cli.js +19 -7
  19. package/dist/src/cloud-cli/cli.js.map +1 -1
  20. package/dist/src/cloud-cli/login.d.ts.map +1 -1
  21. package/dist/src/cloud-cli/login.js +3 -2
  22. package/dist/src/cloud-cli/login.js.map +1 -1
  23. package/dist/src/cloud-cli/register.js +1 -1
  24. package/dist/src/cloud-cli/register.js.map +1 -1
  25. package/dist/src/cloud-cli/userdb.d.ts +2 -0
  26. package/dist/src/cloud-cli/userdb.d.ts.map +1 -1
  27. package/dist/src/cloud-cli/userdb.js +102 -8
  28. package/dist/src/cloud-cli/userdb.js.map +1 -1
  29. package/dist/src/communicator.d.ts +3 -2
  30. package/dist/src/communicator.d.ts.map +1 -1
  31. package/dist/src/communicator.js.map +1 -1
  32. package/dist/src/context.d.ts +3 -3
  33. package/dist/src/context.d.ts.map +1 -1
  34. package/dist/src/context.js +8 -8
  35. package/dist/src/context.js.map +1 -1
  36. package/dist/src/dbos-executor.d.ts +19 -7
  37. package/dist/src/dbos-executor.d.ts.map +1 -1
  38. package/dist/src/dbos-executor.js +186 -67
  39. package/dist/src/dbos-executor.js.map +1 -1
  40. package/dist/src/dbos-runtime/cli.d.ts +0 -1
  41. package/dist/src/dbos-runtime/cli.d.ts.map +1 -1
  42. package/dist/src/dbos-runtime/cli.js +14 -2
  43. package/dist/src/dbos-runtime/cli.js.map +1 -1
  44. package/dist/src/dbos-runtime/config.d.ts +3 -0
  45. package/dist/src/dbos-runtime/config.d.ts.map +1 -1
  46. package/dist/src/dbos-runtime/config.js +0 -1
  47. package/dist/src/dbos-runtime/config.js.map +1 -1
  48. package/dist/src/dbos-runtime/debug.d.ts +4 -0
  49. package/dist/src/dbos-runtime/debug.d.ts.map +1 -0
  50. package/dist/src/dbos-runtime/debug.js +23 -0
  51. package/dist/src/dbos-runtime/debug.js.map +1 -0
  52. package/dist/src/dbos-runtime/runtime.d.ts +2 -2
  53. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  54. package/dist/src/dbos-runtime/runtime.js +20 -21
  55. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  56. package/dist/src/debugger/debug_workflow.d.ts +8 -8
  57. package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
  58. package/dist/src/debugger/debug_workflow.js +107 -36
  59. package/dist/src/debugger/debug_workflow.js.map +1 -1
  60. package/dist/src/httpServer/handler.d.ts +1 -1
  61. package/dist/src/httpServer/handler.d.ts.map +1 -1
  62. package/dist/src/httpServer/handler.js +14 -14
  63. package/dist/src/httpServer/handler.js.map +1 -1
  64. package/dist/src/httpServer/server.d.ts +4 -4
  65. package/dist/src/httpServer/server.d.ts.map +1 -1
  66. package/dist/src/httpServer/server.js +17 -17
  67. package/dist/src/httpServer/server.js.map +1 -1
  68. package/dist/src/{dbos-runtime → staticAnalysis}/TypeParser.d.ts +4 -0
  69. package/dist/src/staticAnalysis/TypeParser.d.ts.map +1 -0
  70. package/dist/src/{dbos-runtime → staticAnalysis}/TypeParser.js +34 -1
  71. package/dist/src/staticAnalysis/TypeParser.js.map +1 -0
  72. package/dist/src/{dbos-runtime → staticAnalysis}/openApi.d.ts.map +1 -1
  73. package/dist/src/{dbos-runtime → staticAnalysis}/openApi.js +1 -31
  74. package/dist/src/staticAnalysis/openApi.js.map +1 -0
  75. package/dist/src/staticAnalysis/tsDiagUtil.d.ts.map +1 -0
  76. package/dist/src/staticAnalysis/tsDiagUtil.js.map +1 -0
  77. package/dist/src/system_database.d.ts +22 -9
  78. package/dist/src/system_database.d.ts.map +1 -1
  79. package/dist/src/system_database.js +44 -42
  80. package/dist/src/system_database.js.map +1 -1
  81. package/dist/src/telemetry/collector.d.ts +5 -5
  82. package/dist/src/telemetry/collector.d.ts.map +1 -1
  83. package/dist/src/telemetry/collector.js +5 -17
  84. package/dist/src/telemetry/collector.js.map +1 -1
  85. package/dist/src/telemetry/exporters.d.ts +11 -24
  86. package/dist/src/telemetry/exporters.d.ts.map +1 -1
  87. package/dist/src/telemetry/exporters.js +42 -129
  88. package/dist/src/telemetry/exporters.js.map +1 -1
  89. package/dist/src/telemetry/index.d.ts +6 -2
  90. package/dist/src/telemetry/index.d.ts.map +1 -1
  91. package/dist/src/telemetry/index.js +16 -0
  92. package/dist/src/telemetry/index.js.map +1 -1
  93. package/dist/src/telemetry/logs.d.ts +35 -11
  94. package/dist/src/telemetry/logs.d.ts.map +1 -1
  95. package/dist/src/telemetry/logs.js +158 -53
  96. package/dist/src/telemetry/logs.js.map +1 -1
  97. package/dist/src/telemetry/traces.d.ts +1 -6
  98. package/dist/src/telemetry/traces.d.ts.map +1 -1
  99. package/dist/src/telemetry/traces.js +2 -34
  100. package/dist/src/telemetry/traces.js.map +1 -1
  101. package/dist/src/testing/testing_runtime.d.ts +1 -1
  102. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  103. package/dist/src/testing/testing_runtime.js +8 -2
  104. package/dist/src/testing/testing_runtime.js.map +1 -1
  105. package/dist/src/transaction.d.ts +1 -1
  106. package/dist/src/transaction.d.ts.map +1 -1
  107. package/dist/src/workflow.d.ts +16 -1
  108. package/dist/src/workflow.d.ts.map +1 -1
  109. package/dist/src/workflow.js +103 -61
  110. package/dist/src/workflow.js.map +1 -1
  111. package/examples/hello/README.md +1 -1
  112. package/examples/hello/dbos-config.yaml +3 -0
  113. package/package.json +3 -2
  114. package/dist/src/dbos-runtime/TypeParser.d.ts.map +0 -1
  115. package/dist/src/dbos-runtime/TypeParser.js.map +0 -1
  116. package/dist/src/dbos-runtime/openApi.js.map +0 -1
  117. package/dist/src/dbos-runtime/tsDiagUtil.d.ts.map +0 -1
  118. package/dist/src/dbos-runtime/tsDiagUtil.js.map +0 -1
  119. package/dist/src/telemetry/signals.d.ts +0 -20
  120. package/dist/src/telemetry/signals.d.ts.map +0 -1
  121. package/dist/src/telemetry/signals.js +0 -11
  122. package/dist/src/telemetry/signals.js.map +0 -1
  123. /package/dist/src/{dbos-runtime → staticAnalysis}/openApi.d.ts +0 -0
  124. /package/dist/src/{dbos-runtime → staticAnalysis}/tsDiagUtil.d.ts +0 -0
  125. /package/dist/src/{dbos-runtime → staticAnalysis}/tsDiagUtil.js +0 -0
@@ -18,29 +18,43 @@ exports.StatusString = {
18
18
  };
19
19
  class WorkflowContextImpl extends context_1.DBOSContextImpl {
20
20
  workflowConfig;
21
+ presetUUID;
21
22
  functionID = 0;
22
- #wfe;
23
+ #dbosExec;
23
24
  resultBuffer = new Map();
24
25
  isTempWorkflow;
25
- constructor(wfe, parentCtx, workflowUUID, workflowConfig, workflowName) {
26
- const span = wfe.tracer.startSpan(workflowName, {
26
+ // For temporary workflows
27
+ tempWfOperationType; // "transaction", "external", or "send"
28
+ tempWfOperationName; // The name of that operation.
29
+ constructor(dbosExec, parentCtx, workflowUUID, workflowConfig, workflowName, presetUUID) {
30
+ const span = dbosExec.tracer.startSpan(workflowName, {
27
31
  workflowUUID: workflowUUID,
28
32
  operationName: workflowName,
29
33
  runAs: parentCtx?.authenticatedUser ?? "",
30
34
  }, parentCtx?.span);
31
- super(workflowName, span, wfe.logger, parentCtx);
35
+ super(workflowName, span, dbosExec.logger, parentCtx);
32
36
  this.workflowConfig = workflowConfig;
37
+ this.presetUUID = presetUUID;
33
38
  this.workflowUUID = workflowUUID;
34
- this.#wfe = wfe;
35
- this.isTempWorkflow = wfe.tempWorkflowName === workflowName;
36
- if (wfe.config.application) {
39
+ this.#dbosExec = dbosExec;
40
+ this.isTempWorkflow = dbos_executor_1.DBOSExecutor.tempWorkflowName === workflowName;
41
+ this.tempWfOperationType = "";
42
+ this.tempWfOperationName = "";
43
+ if (dbosExec.config.application) {
37
44
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
38
- this.applicationConfig = wfe.config.application;
45
+ this.applicationConfig = dbosExec.config.application;
39
46
  }
40
47
  }
41
48
  functionIDGetIncrement() {
42
49
  return this.functionID++;
43
50
  }
51
+ /**
52
+ * Retrieve the transaction snapshot information of the current transaction
53
+ */
54
+ async retrieveSnapshot(client) {
55
+ const rows = await this.#dbosExec.userDatabase.queryWithClient(client, "SELECT pg_current_snapshot()::text as txn_snapshot;");
56
+ return rows[0].txn_snapshot;
57
+ }
44
58
  /**
45
59
  * Check if an operation has already executed in a workflow.
46
60
  * If it previously executed successfully, return its output.
@@ -50,7 +64,7 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
50
64
  */
51
65
  async checkExecution(client, funcID) {
52
66
  // Note: we read the current snapshot, not the recorded one!
53
- const rows = await this.#wfe.userDatabase.queryWithClient(client, "(SELECT output, error, pg_current_snapshot()::text as txn_snapshot, true as recorded FROM dbos.transaction_outputs WHERE workflow_uuid=$1 AND function_id=$2 UNION ALL SELECT null as output, null as error, pg_current_snapshot()::text as txn_snapshot, false as recorded) ORDER BY recorded", this.workflowUUID, funcID);
67
+ const rows = await this.#dbosExec.userDatabase.queryWithClient(client, "(SELECT output, error, txn_snapshot, true as recorded FROM dbos.transaction_outputs WHERE workflow_uuid=$1 AND function_id=$2 UNION ALL SELECT null as output, null as error, pg_current_snapshot()::text as txn_snapshot, false as recorded) ORDER BY recorded", this.workflowUUID, funcID);
54
68
  if (rows.length === 0 || rows.length > 2) {
55
69
  this.logger.error("Unexpected! This should never happen. Returned rows: " + rows.toString());
56
70
  throw new error_1.DBOSError("This should never happen. Returned rows: " + rows.toString());
@@ -99,10 +113,10 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
99
113
  }
100
114
  this.logger.debug(sqlStmt);
101
115
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
102
- await this.#wfe.userDatabase.queryWithClient(client, sqlStmt, ...values);
116
+ await this.#dbosExec.userDatabase.queryWithClient(client, sqlStmt, ...values);
103
117
  }
104
118
  catch (error) {
105
- if (this.#wfe.userDatabase.isKeyConflictError(error)) {
119
+ if (this.#dbosExec.userDatabase.isKeyConflictError(error)) {
106
120
  // Serialization and primary key conflict (Postgres).
107
121
  throw new error_1.DBOSWorkflowConflictUUIDError(this.workflowUUID);
108
122
  }
@@ -126,15 +140,31 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
126
140
  */
127
141
  async recordGuardedOutput(client, funcID, output) {
128
142
  const serialOutput = JSON.stringify(output);
129
- const rows = await this.#wfe.userDatabase.queryWithClient(client, "UPDATE dbos.transaction_outputs SET output=$1, txn_id=(select pg_current_xact_id_if_assigned()::text) WHERE workflow_uuid=$2 AND function_id=$3 RETURNING txn_id;", serialOutput, this.workflowUUID, funcID);
143
+ const rows = await this.#dbosExec.userDatabase.queryWithClient(client, "UPDATE dbos.transaction_outputs SET output=$1, txn_id=(select pg_current_xact_id_if_assigned()::text) WHERE workflow_uuid=$2 AND function_id=$3 RETURNING txn_id;", serialOutput, this.workflowUUID, funcID);
130
144
  return rows[0].txn_id; // Must have a transaction ID because we inserted the guard before.
131
145
  }
146
+ /**
147
+ * Write an unguarded operation's output to the database.
148
+ */
149
+ async recordUnguardedOutput(client, funcID, output) {
150
+ const serialOutput = JSON.stringify(output);
151
+ const rows = await this.#dbosExec.userDatabase.queryWithClient(client, "INSERT INTO dbos.transaction_outputs (workflow_uuid, function_id, output, txn_id, txn_snapshot) VALUES ($1, $2, $3, (select pg_current_xact_id_if_assigned()::text), (select pg_current_snapshot()::text)) RETURNING txn_id;", this.workflowUUID, funcID, serialOutput);
152
+ return rows[0].txn_id;
153
+ }
132
154
  /**
133
155
  * Record an error in a guarded operation to the database.
134
156
  */
135
157
  async recordGuardedError(client, funcID, err) {
136
158
  const serialErr = JSON.stringify((0, serialize_error_1.serializeError)(err));
137
- await this.#wfe.userDatabase.queryWithClient(client, "UPDATE dbos.transaction_outputs SET error=$1 WHERE workflow_uuid=$2 AND function_id=$3;", serialErr, this.workflowUUID, funcID);
159
+ await this.#dbosExec.userDatabase.queryWithClient(client, "UPDATE dbos.transaction_outputs SET error=$1 WHERE workflow_uuid=$2 AND function_id=$3;", serialErr, this.workflowUUID, funcID);
160
+ }
161
+ /**
162
+ * Record an error in an unguarded operation to the database.
163
+ */
164
+ async recordUnguardedError(client, funcID, err) {
165
+ const serialErr = JSON.stringify((0, serialize_error_1.serializeError)(err));
166
+ const rows = await this.#dbosExec.userDatabase.queryWithClient(client, "INSERT INTO dbos.transaction_outputs (workflow_uuid, function_id, error, txn_id, txn_snapshot) VALUES ($1, $2, $3, (select pg_current_xact_id_if_assigned()::text), (select pg_current_snapshot()::text)) RETURNING txn_id;", this.workflowUUID, funcID, serialErr);
167
+ return rows[0].txn_id;
138
168
  }
139
169
  /**
140
170
  * Invoke another workflow as its child workflow and return a workflow handle.
@@ -146,7 +176,7 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
146
176
  // Note: cannot use invoke for childWorkflow because of potential recursive types on the workflow itself.
147
177
  const funcId = this.functionIDGetIncrement();
148
178
  const childUUID = this.workflowUUID + "-" + funcId;
149
- return this.#wfe.internalWorkflow(wf, { parentCtx: this, workflowUUID: childUUID }, this.workflowUUID, funcId, ...args);
179
+ return this.#dbosExec.internalWorkflow(wf, { parentCtx: this, workflowUUID: childUUID }, this.workflowUUID, funcId, ...args);
150
180
  }
151
181
  /**
152
182
  * Execute a transactional function.
@@ -155,35 +185,47 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
155
185
  * If it encounters any other error, throw it.
156
186
  */
157
187
  async transaction(txn, ...args) {
158
- const config = this.#wfe.transactionConfigMap.get(txn.name);
159
- if (config === undefined) {
188
+ const txnInfo = this.#dbosExec.transactionInfoMap.get(txn.name);
189
+ if (txnInfo === undefined) {
160
190
  throw new error_1.DBOSNotRegisteredError(txn.name);
161
191
  }
162
- const readOnly = config.readOnly ?? false;
192
+ const readOnly = txnInfo.config.readOnly ?? false;
163
193
  let retryWaitMillis = 1;
164
194
  const backoffFactor = 2;
165
195
  const funcId = this.functionIDGetIncrement();
166
- const span = this.#wfe.tracer.startSpan(txn.name, {
196
+ const span = this.#dbosExec.tracer.startSpan(txn.name, {
167
197
  workflowUUID: this.workflowUUID,
168
198
  operationName: txn.name,
169
199
  runAs: this.authenticatedUser,
170
200
  readOnly: readOnly,
171
- isolationLevel: config.isolationLevel,
201
+ isolationLevel: txnInfo.config.isolationLevel,
172
202
  }, this.span);
173
203
  // eslint-disable-next-line no-constant-condition
174
204
  while (true) {
175
205
  const wrappedTransaction = async (client) => {
176
- // Check if this execution previously happened, returning its original result if it did.
177
- const tCtxt = new transaction_1.TransactionContextImpl(this.#wfe.userDatabase.getName(), client, this, span, this.#wfe.logger, funcId, txn.name);
178
- const check = await this.checkExecution(client, funcId);
179
- if (check.output !== dbos_executor_1.dbosNull) {
180
- tCtxt.span.setAttribute("cached", true);
181
- tCtxt.span.setStatus({ code: api_1.SpanStatusCode.OK });
182
- this.#wfe.tracer.endSpan(tCtxt.span);
183
- return check.output;
206
+ const tCtxt = new transaction_1.TransactionContextImpl(this.#dbosExec.userDatabase.getName(), client, this, span, this.#dbosExec.logger, funcId, txn.name);
207
+ // If the UUID is preset, it is possible this execution previously happened. Check, and return its original result if it did.
208
+ // Note: It is possible to retrieve a generated ID from a workflow handle, run a concurrent execution, and cause trouble for yourself. We recommend against this.
209
+ let txn_snapshot;
210
+ if (this.presetUUID) {
211
+ const check = await this.checkExecution(client, funcId);
212
+ txn_snapshot = check.txn_snapshot;
213
+ if (check.output !== dbos_executor_1.dbosNull) {
214
+ tCtxt.span.setAttribute("cached", true);
215
+ tCtxt.span.setStatus({ code: api_1.SpanStatusCode.OK });
216
+ this.#dbosExec.tracer.endSpan(tCtxt.span);
217
+ return check.output;
218
+ }
219
+ }
220
+ else if (readOnly) {
221
+ // Collect snapshot information for read-only transactions, if not already collected above
222
+ txn_snapshot = await this.retrieveSnapshot(client);
223
+ }
224
+ // If the UUID is preset, set a guard to block concurrent executions with the same UUID.
225
+ if (this.presetUUID) {
226
+ this.guardOperation(funcId, txn_snapshot);
184
227
  }
185
- // Flush the result buffer, setting a guard to block concurrent executions with the same UUID.
186
- this.guardOperation(funcId, check.txn_snapshot);
228
+ // For non-read-only transactions, flush the result buffer, including the guard if present.
187
229
  if (!readOnly) {
188
230
  await this.flushResultBuffer(client);
189
231
  }
@@ -194,25 +236,25 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
194
236
  // Buffer the output of read-only transactions instead of synchronously writing it.
195
237
  const guardOutput = {
196
238
  output: result,
197
- txn_snapshot: check.txn_snapshot,
239
+ txn_snapshot: txn_snapshot,
198
240
  };
199
241
  this.resultBuffer.set(funcId, guardOutput);
200
242
  }
201
243
  else {
202
244
  // Synchronously record the output of write transactions and obtain the transaction ID.
203
- const pg_txn_id = await this.recordGuardedOutput(client, funcId, result);
245
+ const pg_txn_id = this.presetUUID ? await this.recordGuardedOutput(client, funcId, result) : await this.recordUnguardedOutput(client, funcId, result);
204
246
  tCtxt.span.setAttribute("transaction_id", pg_txn_id);
205
247
  this.resultBuffer.clear();
206
248
  }
207
249
  return result;
208
250
  };
209
251
  try {
210
- const result = await this.#wfe.userDatabase.transaction(wrappedTransaction, config);
252
+ const result = await this.#dbosExec.userDatabase.transaction(wrappedTransaction, txnInfo.config);
211
253
  span.setStatus({ code: api_1.SpanStatusCode.OK });
212
254
  return result;
213
255
  }
214
256
  catch (err) {
215
- if (this.#wfe.userDatabase.isRetriableTransactionError(err)) {
257
+ if (this.#dbosExec.userDatabase.isRetriableTransactionError(err)) {
216
258
  // serialization_failure in PostgreSQL
217
259
  span.addEvent("TXN SERIALIZATION FAILURE", { retryWaitMillis });
218
260
  // Retry serialization failures.
@@ -222,16 +264,16 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
222
264
  }
223
265
  // Record and throw other errors.
224
266
  const e = err;
225
- await this.#wfe.userDatabase.transaction(async (client) => {
267
+ await this.#dbosExec.userDatabase.transaction(async (client) => {
226
268
  await this.flushResultBuffer(client);
227
- await this.recordGuardedError(client, funcId, e);
269
+ this.presetUUID ? await this.recordGuardedError(client, funcId, e) : await this.recordUnguardedError(client, funcId, e);
228
270
  }, { isolationLevel: transaction_1.IsolationLevel.ReadCommitted });
229
271
  this.resultBuffer.clear();
230
272
  span.setStatus({ code: api_1.SpanStatusCode.ERROR, message: e.message });
231
273
  throw err;
232
274
  }
233
275
  finally {
234
- this.#wfe.tracer.endSpan(span);
276
+ this.#dbosExec.tracer.endSpan(span);
235
277
  }
236
278
  }
237
279
  }
@@ -241,31 +283,31 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
241
283
  * The communicator may execute many times, but once it is complete, it will not re-execute.
242
284
  */
243
285
  async external(commFn, ...args) {
244
- const commConfig = this.#wfe.communicatorConfigMap.get(commFn.name);
245
- if (commConfig === undefined) {
286
+ const commInfo = this.#dbosExec.communicatorInfoMap.get(commFn.name);
287
+ if (commInfo === undefined) {
246
288
  throw new error_1.DBOSNotRegisteredError(commFn.name);
247
289
  }
248
290
  const funcID = this.functionIDGetIncrement();
249
- const span = this.#wfe.tracer.startSpan(commFn.name, {
291
+ const span = this.#dbosExec.tracer.startSpan(commFn.name, {
250
292
  workflowUUID: this.workflowUUID,
251
293
  operationName: commFn.name,
252
294
  runAs: this.authenticatedUser,
253
- retriesAllowed: commConfig.retriesAllowed,
254
- intervalSeconds: commConfig.intervalSeconds,
255
- maxAttempts: commConfig.maxAttempts,
256
- backoffRate: commConfig.backoffRate,
295
+ retriesAllowed: commInfo.config.retriesAllowed,
296
+ intervalSeconds: commInfo.config.intervalSeconds,
297
+ maxAttempts: commInfo.config.maxAttempts,
298
+ backoffRate: commInfo.config.backoffRate,
257
299
  }, this.span);
258
- const ctxt = new communicator_1.CommunicatorContextImpl(this, funcID, span, this.#wfe.logger, commConfig, commFn.name);
259
- await this.#wfe.userDatabase.transaction(async (client) => {
300
+ const ctxt = new communicator_1.CommunicatorContextImpl(this, funcID, span, this.#dbosExec.logger, commInfo.config, commFn.name);
301
+ await this.#dbosExec.userDatabase.transaction(async (client) => {
260
302
  await this.flushResultBuffer(client);
261
303
  }, { isolationLevel: transaction_1.IsolationLevel.ReadCommitted });
262
304
  this.resultBuffer.clear();
263
305
  // Check if this execution previously happened, returning its original result if it did.
264
- const check = await this.#wfe.systemDatabase.checkOperationOutput(this.workflowUUID, ctxt.functionID);
306
+ const check = await this.#dbosExec.systemDatabase.checkOperationOutput(this.workflowUUID, ctxt.functionID);
265
307
  if (check !== dbos_executor_1.dbosNull) {
266
308
  ctxt.span.setAttribute("cached", true);
267
309
  ctxt.span.setStatus({ code: api_1.SpanStatusCode.OK });
268
- this.#wfe.tracer.endSpan(ctxt.span);
310
+ this.#dbosExec.tracer.endSpan(ctxt.span);
269
311
  return check;
270
312
  }
271
313
  // Execute the communicator function. If it throws an exception, retry with exponential backoff.
@@ -286,7 +328,7 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
286
328
  intervalSeconds *= ctxt.backoffRate;
287
329
  }
288
330
  ctxt.span.setStatus({ code: api_1.SpanStatusCode.ERROR, message: error.message });
289
- this.#wfe.tracer.endSpan(ctxt.span);
331
+ this.#dbosExec.tracer.endSpan(ctxt.span);
290
332
  }
291
333
  }
292
334
  }
@@ -297,23 +339,23 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
297
339
  catch (error) {
298
340
  err = error;
299
341
  ctxt.span.setStatus({ code: api_1.SpanStatusCode.ERROR, message: error.message });
300
- this.#wfe.tracer.endSpan(ctxt.span);
342
+ this.#dbosExec.tracer.endSpan(ctxt.span);
301
343
  }
302
344
  }
303
345
  // `result` can only be dbosNull when the communicator timed out
304
346
  if (result === dbos_executor_1.dbosNull) {
305
347
  // Record the error, then throw it.
306
348
  err = err === dbos_executor_1.dbosNull ? new error_1.DBOSError("Communicator reached maximum retries.", 1) : err;
307
- await this.#wfe.systemDatabase.recordOperationError(this.workflowUUID, ctxt.functionID, err);
349
+ await this.#dbosExec.systemDatabase.recordOperationError(this.workflowUUID, ctxt.functionID, err);
308
350
  ctxt.span.setStatus({ code: api_1.SpanStatusCode.ERROR, message: err.message });
309
- this.#wfe.tracer.endSpan(ctxt.span);
351
+ this.#dbosExec.tracer.endSpan(ctxt.span);
310
352
  throw err;
311
353
  }
312
354
  else {
313
355
  // Record the execution and return.
314
- await this.#wfe.systemDatabase.recordOperationOutput(this.workflowUUID, ctxt.functionID, result);
356
+ await this.#dbosExec.systemDatabase.recordOperationOutput(this.workflowUUID, ctxt.functionID, result);
315
357
  ctxt.span.setStatus({ code: api_1.SpanStatusCode.OK });
316
- this.#wfe.tracer.endSpan(ctxt.span);
358
+ this.#dbosExec.tracer.endSpan(ctxt.span);
317
359
  return result;
318
360
  }
319
361
  }
@@ -323,11 +365,11 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
323
365
  */
324
366
  async send(destinationUUID, message, topic) {
325
367
  const functionID = this.functionIDGetIncrement();
326
- await this.#wfe.userDatabase.transaction(async (client) => {
368
+ await this.#dbosExec.userDatabase.transaction(async (client) => {
327
369
  await this.flushResultBuffer(client);
328
370
  }, { isolationLevel: transaction_1.IsolationLevel.ReadCommitted });
329
371
  this.resultBuffer.clear();
330
- await this.#wfe.systemDatabase.send(this.workflowUUID, functionID, destinationUUID, message, topic);
372
+ await this.#dbosExec.systemDatabase.send(this.workflowUUID, functionID, destinationUUID, message, topic);
331
373
  }
332
374
  /**
333
375
  * Consume and return the oldest unconsumed message sent to your UUID.
@@ -336,11 +378,11 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
336
378
  */
337
379
  async recv(topic, timeoutSeconds = dbos_executor_1.DBOSExecutor.defaultNotificationTimeoutSec) {
338
380
  const functionID = this.functionIDGetIncrement();
339
- await this.#wfe.userDatabase.transaction(async (client) => {
381
+ await this.#dbosExec.userDatabase.transaction(async (client) => {
340
382
  await this.flushResultBuffer(client);
341
383
  }, { isolationLevel: transaction_1.IsolationLevel.ReadCommitted });
342
384
  this.resultBuffer.clear();
343
- return this.#wfe.systemDatabase.recv(this.workflowUUID, functionID, topic, timeoutSeconds);
385
+ return this.#dbosExec.systemDatabase.recv(this.workflowUUID, functionID, topic, timeoutSeconds);
344
386
  }
345
387
  /**
346
388
  * Emit a workflow event, represented as a key-value pair.
@@ -348,11 +390,11 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
348
390
  */
349
391
  async setEvent(key, value) {
350
392
  const functionID = this.functionIDGetIncrement();
351
- await this.#wfe.userDatabase.transaction(async (client) => {
393
+ await this.#dbosExec.userDatabase.transaction(async (client) => {
352
394
  await this.flushResultBuffer(client);
353
395
  }, { isolationLevel: transaction_1.IsolationLevel.ReadCommitted });
354
396
  this.resultBuffer.clear();
355
- await this.#wfe.systemDatabase.setEvent(this.workflowUUID, functionID, key, value);
397
+ await this.#dbosExec.systemDatabase.setEvent(this.workflowUUID, functionID, key, value);
356
398
  }
357
399
  /**
358
400
  * Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
@@ -378,14 +420,14 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
378
420
  */
379
421
  getEvent(targetUUID, key, timeoutSeconds = dbos_executor_1.DBOSExecutor.defaultNotificationTimeoutSec) {
380
422
  const functionID = this.functionIDGetIncrement();
381
- return this.#wfe.systemDatabase.getEvent(targetUUID, key, timeoutSeconds, this.workflowUUID, functionID);
423
+ return this.#dbosExec.systemDatabase.getEvent(targetUUID, key, timeoutSeconds, this.workflowUUID, functionID);
382
424
  }
383
425
  /**
384
426
  * Retrieve a handle for a workflow UUID.
385
427
  */
386
428
  retrieveWorkflow(targetUUID) {
387
429
  const functionID = this.functionIDGetIncrement();
388
- return new RetrievedHandle(this.#wfe.systemDatabase, targetUUID, this.workflowUUID, functionID);
430
+ return new RetrievedHandle(this.#dbosExec.systemDatabase, targetUUID, this.workflowUUID, functionID);
389
431
  }
390
432
  }
391
433
  exports.WorkflowContextImpl = WorkflowContextImpl;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/workflow.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,mDAAmE;AAEnE,+CAAwG;AACxG,iDAA4F;AAC5F,mCAA2F;AAC3F,qDAAmE;AACnE,mCAAgC;AAGhC,4CAAoD;AAEpD,uCAAsE;AACtE,6CAAuD;AA2C1C,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AAcX,MAAa,mBAAoB,SAAQ,yBAAe;IAU3C;IATX,UAAU,GAAW,CAAC,CAAC;IACd,IAAI,CAAC;IACL,YAAY,GAAgC,IAAI,GAAG,EAA0B,CAAC;IAC9E,cAAc,CAAU;IAEjC,YACE,GAAiB,EACjB,SAAsC,EACtC,YAAoB,EACX,cAA8B,EACvC,YAAoB;QAEpB,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,CAC/B,YAAY,EACZ;YACE,YAAY,EAAE,YAAY;YAC1B,aAAa,EAAE,YAAY;YAC3B,KAAK,EAAE,SAAS,EAAE,iBAAiB,IAAI,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"}
@@ -24,7 +24,7 @@ Next, build and run the app:
24
24
 
25
25
  ```bash
26
26
  npm run build
27
- npx dbos start
27
+ npx dbos-sdk start
28
28
  ```
29
29
 
30
30
  Finally, curl the server to see that it's working!
@@ -12,4 +12,7 @@ database:
12
12
  system_database: 'hello_systemdb'
13
13
  connectionTimeoutMillis: 3000
14
14
  user_dbclient: 'knex'
15
+ create_db: true
16
+ migrate: ['migrate:latest']
17
+ rollback: ['migrate:rollback']
15
18
  version: "1.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "0.7.25-preview",
3
+ "version": "0.8.12-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -44,9 +44,10 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@koa/bodyparser": "^5.0.0",
47
- "@koa/cors": "^4.0.0",
47
+ "@koa/cors": "^5.0.0",
48
48
  "@koa/router": "^12.0.0",
49
49
  "@opentelemetry/api": "^1.4.1",
50
+ "@opentelemetry/exporter-logs-otlp-http": "0.41.2",
50
51
  "@opentelemetry/exporter-trace-otlp-http": "^0.41.2",
51
52
  "@opentelemetry/sdk-trace-base": "^1.15.2",
52
53
  "@types/koa": "^2.13.8",
@@ -1 +0,0 @@
1
- {"version":3,"file":"TypeParser.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/TypeParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAAC;IACnC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,SAAS,aAAa,EAAE,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,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AC;IACxD,CAAC;IAED,IAAI,CAAC,OAAe,EAAE,IAAc;QAClC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;CACF;AAXD,oDAWC"}
@@ -1,20 +0,0 @@
1
- import { ReadableSpan } from "@opentelemetry/sdk-trace-base";
2
- import { ValuesOf } from "../utils";
3
- export declare const LogSeverity: {
4
- readonly Debug: "DEBUG";
5
- readonly Info: "INFO";
6
- readonly Warn: "WARN";
7
- readonly Error: "ERROR";
8
- readonly Log: "LOG";
9
- };
10
- export type LogSeverity = ValuesOf<typeof LogSeverity>;
11
- export interface TelemetrySignal {
12
- workflowUUID: string;
13
- operationName: string;
14
- runAs: string;
15
- timestamp: number;
16
- transactionID?: string;
17
- traceID?: string;
18
- traceSpan?: ReadableSpan;
19
- }
20
- //# sourceMappingURL=signals.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LogSeverity = void 0;
4
- exports.LogSeverity = {
5
- Debug: "DEBUG",
6
- Info: "INFO",
7
- Warn: "WARN",
8
- Error: "ERROR",
9
- Log: "LOG",
10
- };
11
- //# sourceMappingURL=signals.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":";;;AAGa,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC"}