VideoChain-API / src /database /getPendingTasks.mts
jbilcke-hf's picture
jbilcke-hf HF staff
working on the VideoChain queue system
652f343
raw
history blame
299 Bytes
import { VideoTask } from "../types.mts"
import { pendingTasksDirFilePath } from "./constants.mts"
import { readTasks } from "./readTasks.mts"
export const getPendingTasks = async (): Promise<VideoTask[]> => {
const pendingTasks = await readTasks(pendingTasksDirFilePath)
return pendingTasks
}