VideoChain-API / src /scheduler /getPendingTasks.mts
jbilcke-hf's picture
jbilcke-hf HF staff
ready for release (sort of)
9571f2e
raw
history blame
322 Bytes
import { VideoTask } from "../types.mts"
import { pendingTasksDirFilePath } from "../config.mts"
import { readTasks } from "./readTasks.mts"
export const getPendingTasks = async (ownerId?: string): Promise<VideoTask[]> => {
const pendingTasks = await readTasks(pendingTasksDirFilePath, ownerId)
return pendingTasks
}