@dbos-inc/dbos-sdk 1.24.12-preview.g8bb979d7ca → 1.25.2-preview
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/schemas/system_db_schema.d.ts +8 -0
- package/dist/schemas/system_db_schema.d.ts.map +1 -1
- package/dist/src/dbos-executor.d.ts +9 -9
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +69 -40
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos-runtime/cli.js +1 -1
- package/dist/src/dbos-runtime/cli.js.map +1 -1
- package/dist/src/dbos-runtime/migrate.d.ts +2 -2
- package/dist/src/dbos-runtime/runtime.d.ts +1 -0
- package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
- package/dist/src/dbos-runtime/runtime.js +6 -0
- package/dist/src/dbos-runtime/runtime.js.map +1 -1
- package/dist/src/debugger/debug_workflow.d.ts +5 -4
- package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
- package/dist/src/debugger/debug_workflow.js +11 -11
- package/dist/src/debugger/debug_workflow.js.map +1 -1
- package/dist/src/decorators.d.ts +4 -4
- package/dist/src/decorators.d.ts.map +1 -1
- package/dist/src/decorators.js +3 -3
- package/dist/src/decorators.js.map +1 -1
- package/dist/src/eventreceiver.d.ts +2 -2
- package/dist/src/eventreceiver.d.ts.map +1 -1
- package/dist/src/httpServer/handler.d.ts +5 -4
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +11 -11
- package/dist/src/httpServer/handler.js.map +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/scheduler/scheduler.d.ts +0 -1
- package/dist/src/scheduler/scheduler.d.ts.map +1 -1
- package/dist/src/scheduler/scheduler.js +0 -3
- package/dist/src/scheduler/scheduler.js.map +1 -1
- package/dist/src/{communicator.d.ts → step.d.ts} +6 -7
- package/dist/src/step.d.ts.map +1 -0
- package/dist/src/{communicator.js → step.js} +4 -4
- package/dist/src/step.js.map +1 -0
- package/dist/src/system_database.d.ts +8 -0
- package/dist/src/system_database.d.ts.map +1 -1
- package/dist/src/system_database.js +106 -7
- package/dist/src/system_database.js.map +1 -1
- package/dist/src/testing/testing_runtime.d.ts +6 -5
- package/dist/src/testing/testing_runtime.d.ts.map +1 -1
- package/dist/src/testing/testing_runtime.js +11 -6
- package/dist/src/testing/testing_runtime.js.map +1 -1
- package/dist/src/wfqueue.d.ts +28 -0
- package/dist/src/wfqueue.d.ts.map +1 -0
- package/dist/src/wfqueue.js +70 -0
- package/dist/src/wfqueue.js.map +1 -0
- package/dist/src/workflow.d.ts +15 -10
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +22 -21
- package/dist/src/workflow.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/migrations/20240924000000_workflowqueue.js +24 -0
- package/package.json +1 -1
- package/dist/src/communicator.d.ts.map +0 -1
- package/dist/src/communicator.js.map +0 -1
@@ -0,0 +1,24 @@
|
|
1
|
+
exports.up = function(knex) {
|
2
|
+
return knex.schema.withSchema('dbos')
|
3
|
+
.table('workflow_status', function(table) {
|
4
|
+
table.text('queue_name')
|
5
|
+
.defaultTo(null);
|
6
|
+
})
|
7
|
+
.createTable('workflow_queue', function(table) {
|
8
|
+
table.text('queue_name').notNullable();
|
9
|
+
table.text('workflow_uuid').notNullable();
|
10
|
+
table.bigInteger('created_at_epoch_ms').notNullable().defaultTo(knex.raw('(EXTRACT(EPOCH FROM now())*1000)::bigint'));
|
11
|
+
table.bigInteger('started_at_epoch_ms');
|
12
|
+
table.bigInteger('completed_at_epoch_ms');
|
13
|
+
table.primary(['workflow_uuid']);
|
14
|
+
table.foreign('workflow_uuid').references('workflow_uuid').inTable('dbos.workflow_status').onDelete('CASCADE').onUpdate('CASCADE');
|
15
|
+
})
|
16
|
+
};
|
17
|
+
|
18
|
+
exports.down = function(knex) {
|
19
|
+
return knex.schema.withSchema('dbos')
|
20
|
+
.table('workflow_status', function(table) {
|
21
|
+
table.dropColumn('queue_name');
|
22
|
+
})
|
23
|
+
.dropTableIfExists('workflow_queue');
|
24
|
+
};
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"communicator.d.ts","sourceRoot":"","sources":["../../src/communicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AACzG,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE9E,MAAM,WAAW,kBAAkB;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IAEtD,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,qBAAa,uBAAwB,SAAQ,eAAgB,YAAW,mBAAmB;IACzF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,cAAc,EAAE,OAAO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