This commit is contained in:
Ngo Quoc Viet 2026-08-14 13:44:11 +00:00 committed by GitHub
commit 23aa59647c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

View File

@ -56,11 +56,10 @@ export class DownloadService {
}
async listDownloadJobs(filetype?: string): Promise<DownloadJobWithProgress[]> {
const modelQueue = this.queueService.getQueue(DownloadModelJob.queue)
const [fileTagged, extractTagged, modelJobs, drugTagged] = await Promise.all([
const [fileTagged, extractTagged, modelTagged, drugTagged] = await Promise.all([
this.fetchJobsWithStates(RunDownloadJob.queue),
this.fetchJobsWithStates(RunExtractPmtilesJob.queue),
modelQueue.getJobs(['waiting', 'active', 'delayed', 'failed']),
this.fetchJobsWithStates(DownloadModelJob.queue),
this.fetchJobsWithStates(DownloadDrugDataJob.queue),
])
@ -98,7 +97,7 @@ export class DownloadService {
}
})
const modelDownloads = modelJobs.map((job) => ({
const modelDownloads = modelTagged.map(({ job }) => ({
jobId: job.id!.toString(),
url: job.data.modelName || 'Unknown Model',
progress: parseInt(job.progress.toString(), 10),