fix(workflow): ensure CLI tasks are enqueued to DBOS and run DBOS migrations in global setup

- Initialize workflows and wait for pending DBOS submissions in shumai regenerate-embeddings CLI
- Remove no-op submit bypass and enqueue tasks via DBOSClient in producer and CLI contexts
- Add DBOS migration runner in test global setup to avoid concurrent migration deadlocks across test forks
- Update changelog and add regression tests
This commit is contained in:
yiling
2026-10-17 19:06:22 +08:00
parent 6966e5876e
commit 7e1e2441d7
8 changed files with 118 additions and 15 deletions
+9
View File
@@ -23,6 +23,15 @@ export async function globalTestSetup() {
},
})
console.log('Prisma Migrations completed.')
console.log('Applying DBOS Migrations...')
await execAsync('bun packages/workflow-core/src/migrate.ts', {
env: {
...process.env,
DATABASE_URL: databaseUrl,
},
})
console.log('DBOS Migrations completed.')
}
export async function setup() {