Skip to content

Commit 29b76eb

Browse files
committed
chore: wip
1 parent d540271 commit 29b76eb

File tree

7 files changed

+10
-3
lines changed

7 files changed

+10
-3
lines changed

packages/bun-queue/src/commands/script-loader.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { RedisClient } from '../types'
22
import { createHash } from 'node:crypto'
33
import * as fs from 'node:fs'
44
import * as path from 'node:path'
5+
import process from 'node:process'
56
import { promisify } from 'node:util'
67

78
const readFile = promisify(fs.readFile)
@@ -541,7 +542,7 @@ function getPkgJsonDir(): string {
541542
fs.accessSync(pkgJsonPath, fs.constants.F_OK)
542543
return currentDir
543544
}
544-
catch (e) {
545+
catch {
545546
currentDir = path.dirname(currentDir)
546547
}
547548
}
@@ -571,7 +572,7 @@ function getCallerFile(): string {
571572
}
572573
}
573574
}
574-
catch (e) {
575+
catch {
575576
}
576577
finally {
577578
Error.prepareStackTrace = originalFunc

packages/bun-queue/src/cron-scheduler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class CronScheduler {
248248
date.setFullYear(year, month, day)
249249
date.setHours(hour, minute, 0, 0)
250250
}
251-
catch (error) {
251+
catch {
252252
this.logger.warn(`Invalid timezone: ${timezone}, using system timezone`)
253253
}
254254
}

packages/bun-queue/src/distributed-lock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { RedisClient } from 'bun'
2+
import process from 'node:process'
23
import { createLogger } from './logger'
34
import { generateId } from './utils'
45

packages/bun-queue/src/failed/failed-job-provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable no-console */
2+
13
export interface FailedJob {
24
id: string
35
connection: string

packages/bun-queue/src/jobs/middleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import type { JobContract as Job, JobMiddleware } from '../job-base'
23

34
export class RateLimited implements JobMiddleware {

packages/bun-queue/src/logger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import type { LogLevel } from './types'
23
import { config } from './config'
34

queue.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { QueueConfig } from './packages/bun-queue/src/types'
2+
import process from 'node:process'
23

34
// Standard queue configuration (existing bunfig approach) - default export for auto-loading
45
export default {

0 commit comments

Comments
 (0)