VideoChain-API / src /scheduler /getPendingTasks.mts
jbilcke-hf's picture
jbilcke-hf HF staff
ok! now, time to debug and build the frontend..
5dfc565
raw
history blame
297 Bytes
import { VideoTask } from "../types.mts"
import { pendingTasksDirFilePath } from "../config.mts"
import { readTasks } from "./readTasks.mts"
export const getPendingTasks = async (): Promise<VideoTask[]> => {
const pendingTasks = await readTasks(pendingTasksDirFilePath)
return pendingTasks
}