feat(workflow): migrate workflow engine from temporal to dbos

Replace Temporal and LocalExecutor with DBOS Transact (@dbos-inc/dbos-sdk) as the unified workflow engine. Background tasks, media transcoding, and AI agent workflows now execute with durable steps and task queues directly against PostgreSQL, eliminating the need for an external Temporal cluster and separate polling executors.
This commit is contained in:
yiling
2026-10-17 15:50:17 +08:00
parent f7ed3bafdf
commit 97af81d157
65 changed files with 4397 additions and 5933 deletions
+2 -11
View File
@@ -8,16 +8,7 @@ import { writeFileSync } from 'node:fs'
* to ensure that production dependencies match development/build versions exactly.
*/
const depsToExtract = [
'@temporalio/activity',
'@temporalio/client',
'@temporalio/worker',
'@temporalio/workflow',
'exiftool-vendored',
'pdfkit',
'prisma',
'sharp',
]
const depsToExtract = ['@dbos-inc/dbos-sdk', 'pg', 'exiftool-vendored', 'pdfkit', 'prisma', 'sharp']
function run(cmd: string) {
try {
@@ -41,7 +32,7 @@ const deps: Record<string, string> = {}
for (const dep of depsToExtract) {
// regex to find the version after the package name in `bun pm ls` output
// e.g., ├── @temporalio/client@1.17.2
// e.g., ├── @dbos-inc/dbos-sdk@5.2.11
const escapedDep = dep.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
const regex = new RegExp(`(?:^|\\s)${escapedDep}@(\\d+\\.\\d+\\.\\d+[^\\s]*)`, 'g')
const match = regex.exec(output)