create digest job api

This commit is contained in:
Hongbo Wu
2024-04-12 15:59:37 +08:00
parent b4911639c7
commit 12aa7d4447
7 changed files with 81 additions and 10 deletions

View File

@ -96,6 +96,9 @@ export const getBackendQueue = async (): Promise<Queue | undefined> => {
return backendQueue
}
export const createJobId = (jobName: string, userId: string) =>
`${jobName}_${userId}_${JOB_VERSION}`
export const getJob = async (jobId: string) => {
const queue = await getBackendQueue()
if (!queue) {