Route engine yue2 through a standalone job helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-14 18:26:55 -05:00
co-authored by Cursor
parent 3c46365ebf
commit a44a51315b
6 changed files with 161 additions and 0 deletions
+2
View File
@@ -1,4 +1,5 @@
import { startYueGpJob } from './yueGp'
import { startYue2Job } from './yue2'
import { createJob, emitJob, type Job } from '~/server/utils/jobs'
import { extractAudio, fetchHistory, fetchHistoryAll, findHistoryAudio, purgeComfyArtifacts, queuePrompt } from '~/server/utils/comfy'
import { comfyWsUrl, comfyFetch } from '~/server/utils/comfy'
@@ -341,6 +342,7 @@ function watchMusicJob(job: Job): Promise<void> {
export async function startMusicJob(params: MusicJobParams) {
if (params.engine === 'yue') return startYueGpJob(params)
if (params.engine === 'yue2') return startYue2Job(params)
const job = createJob('music')
job.library = {
ownerKey: params.ownerKey,