-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathqueue.config.ts
More file actions
32 lines (30 loc) · 745 Bytes
/
queue.config.ts
File metadata and controls
32 lines (30 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { QueueConfig } from './packages/bun-queue/src/types'
import process from 'node:process'
// Standard queue configuration (existing bunfig approach) - default export for auto-loading
const config: QueueConfig = {
verbose: true,
logLevel: 'info',
prefix: 'bun_queues',
redis: {
url: process.env.REDIS_URL || 'redis://localhost:6379',
},
defaultJobOptions: {
attempts: 3,
backoff: {
type: 'exponential',
delay: 1000,
},
timeout: 30000,
removeOnComplete: true,
removeOnFail: false,
keepJobs: false,
},
metrics: {
enabled: true,
collectInterval: 30000,
},
stalledJobCheckInterval: 30000,
maxStalledJobRetries: 3,
distributedLock: true,
}
export default config