mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
feat(core): Make queue mode settings configurable (#7526)
This PR allows users to configure the settings to Bull, possibly reducing the errors with `maxStalledCount` and other issues, that usually happen either when a worker crashes or when the event loop is super busy. Increasing the lease time and the `maxStalledCount` settings might improve UX. Github issue / Community forum post (link here to close automatically):
This commit is contained in:
@@ -54,6 +54,7 @@ export class Queue {
|
||||
// More here: https://github.com/OptimalBits/bull/issues/890
|
||||
this.jobQueue = new Bull('jobs', {
|
||||
prefix,
|
||||
settings: config.get('queue.bull.settings'),
|
||||
createClient: (type, clientConfig) =>
|
||||
usesRedisCluster
|
||||
? getRedisClusterClient(Redis, clientConfig, (type + '(bull)') as RedisClientType)
|
||||
|
||||
Reference in New Issue
Block a user