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