-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55fff7f
commit 23aadc3
Showing
3 changed files
with
1 addition
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,8 @@ | ||
export interface AdvancedOptions { | ||
// How often check for stalled jobs (use 0 for never checking). | ||
stalledInterval?: number; | ||
|
||
// Max amount of times a stalled job will be re-processed. | ||
maxStalledCount?: number; | ||
|
||
// Poll interval for delayed jobs and added jobs. | ||
guardInterval?: number; | ||
|
||
// delay before processing next job in case of internal error. | ||
retryProcessDelay?: number; | ||
|
||
// A set of custom backoff strategies keyed by name. | ||
backoffStrategies?: {}; | ||
|
||
// A timeout for when the queue is in drained state (empty waiting for jobs). | ||
drainDelay?: number; | ||
} | ||
|
||
export const AdvancedOptionsDefaults: AdvancedOptions = { | ||
stalledInterval: 30000, | ||
maxStalledCount: 1, | ||
guardInterval: 5000, | ||
retryProcessDelay: 5000, | ||
backoffStrategies: {}, | ||
drainDelay: 5, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters