mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 10:55:27 +00:00
9 lines
396 B
TypeScript
9 lines
396 B
TypeScript
import { TaskQueueAgent, TaskQueueArchive, TaskQueueTranscode } from '@shumai/workflow-core'
|
|||
|
|
|
||
|
|
/** Agent and archive work always belongs to the server; only transcoding is optional. */
|
||
|
|
export function getServerQueues(option: string): string[] {
|
||
|
|
const queues = [TaskQueueAgent, TaskQueueArchive]
|
||
|
|
if (option === 'all' || option === 'transcode') queues.push(TaskQueueTranscode)
|
||
|
|
return queues
|
||
|
|
}
|