Closed alexgorbatchev closed 8 years ago
new Queue(connection, { name: 'jobQueue', concurency: 10, masterInterval: false })
Produces the following log message
[2016-10-03 00:52:24.304][db-review] enable +0ms 310000
However,
new Queue(connection, { name: 'jobQueue', concurency: 10, masterInterval: 10000 })
[2016-10-03 00:52:24.373][db-review] enable +0ms 10000
This is due to
this._masterInterval = options.masterInterval || enums.options.masterInterval
If options.masterInterval is false, it will default to enums.options.masterInterval. That should be something like
options.masterInterval
false
enums.options.masterInterval
this._masterInterval = typeof options.masterInterval !== 'undefined' ? options.masterInterval : enums.options.masterInterval ;
Good find on this one @alexgorbatchev. One of those changes I though I made but didn't.
Fixed in v0.4.1
Thanks.
👍
Produces the following log message
However,
Produces the following log message
This is due to
If
options.masterInterval
isfalse
, it will default toenums.options.masterInterval
. That should be something like