macOS 14.1.2 Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 arm64
Describe the bug
Local settings of the queue, placed directly into API endpoint module, not working at all. Any values there just doesn't applied, so the queue restrictions on the endpoint doesn't applied as well.
Impress and Node.js versions
Impress: 3.0.13 Node: 20.9.0, 18.18.2
Platform
macOS 14.1.2 Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 arm64
Describe the bug
Local settings of the queue, placed directly into API endpoint module, not working at all. Any values there just doesn't applied, so the queue restrictions on the endpoint doesn't applied as well.
To Reproduce
application/config/server.js
containshttps://github.com/metarhia/impress/blob/4cabe81e1cef6870a10d7c7b020f8618db3bdbf3/test/config/server.js#L15-L19
application/api/example/testQueue.js
api
is active and there is messagesawait api.example.testQueue();
and call it 3 times quickly (without awaiting for results)Expected behavior
Local queue settings of the API endpoint must be applied to control behaviour. Reproducing example above we expect :
Screenshots
No response
Additional context
I'm already investigating possible fix to make pull request.