Spaces:
Paused
Paused
Download web/backend/src/utils/infra/queue.util.ts from ejjays/nexstream-api: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/ejjays/nexstream-api/resolve/main/web/backend/src/utils/infra/queue.util.ts
- Command line
-
hf download hf://spaces/ejjays/nexstream-api/web/backend/src/utils/infra/queue.util.ts
-
curl -L -o queue.util.ts https://huggingface.co/spaces/ejjays/nexstream-api/resolve/main/web/backend/src/utils/infra/queue.util.ts
401 Bytes
| import { Queue } from 'bullmq'; | |
| import { createRedisClient } from './redis.util.js'; | |
| // bullmq connections | |
| export const connection = createRedisClient('Queue'); | |
| export const downloadQueue = new Queue('downloads', { | |
| connection, | |
| defaultJobOptions: { | |
| attempts: 3, | |
| backoff: { | |
| type: 'exponential', | |
| delay: 1000, | |
| }, | |
| removeOnComplete: true, | |
| removeOnFail: false, | |
| }, | |
| }); | |