mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 10:46:53 +00:00
- 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
12 lines
280 B
TypeScript
12 lines
280 B
TypeScript
import { DBOS } from '@dbos-inc/dbos-sdk'
|
|
import { getDbosDatabaseUrl } from './dbos-executor'
|
|
|
|
export async function migrateDbos(url?: string): Promise<void> {
|
|
const dbUrl = getDbosDatabaseUrl(url)
|
|
await DBOS.migrate(dbUrl)
|
|
}
|
|
|
|
if (import.meta.main) {
|
|
await migrateDbos()
|
|
}
|