forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.ts
29 lines (26 loc) · 909 Bytes
/
consts.ts
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
import console from 'node:console'
export const DEFAULT_MAX_ATTEMPTS = 24
/** 4 hours in seconds */
export const DEFAULT_MAX_RUNTIME = 14_400
/** 5 seconds */
export const DEFAULT_SLEEP_DELAY = 5
export const DEFAULT_DELETE_SUCCESSFUL_JOBS = true
export const DEFAULT_DELETE_FAILED_JOBS = false
export const DEFAULT_LOGGER = console
export const DEFAULT_QUEUE = 'default'
export const DEFAULT_WORK_QUEUE = '*'
export const DEFAULT_PRIORITY = 50
export const DEFAULT_WAIT = 0
export const DEFAULT_WAIT_UNTIL = null
export const PROCESS_TITLE_PREFIX = 'rw-jobs-worker'
export const DEFAULT_MODEL_NAME = 'BackgroundJob'
/**
* The name of the exported variable from the jobs config file that contains
* the adapter
*/
export const DEFAULT_ADAPTER_NAME = 'adapter'
/**
* The name of the exported variable from the jobs config file that contains
* the logger
*/
export const DEFAULT_LOGGER_NAME = 'logger'