Skip to content

Add pqueue to API

Add pqueue to API #692

Triggered via pull request September 25, 2024 13:53
@pelikhanpelikhan
synchronize #725
pqueue
Status Success
Total duration 1m 32s
Artifacts 1

genai-pr-commit-review.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
build: packages/core/src/concurrency.ts#L22
There is no error handling in the PLimitPromiseQueue class. If any of the promises in the queue fail, it could lead to unhandled promise rejections which can cause the Node.js process to crash. Consider adding try-catch blocks or .catch() handlers to handle promise rejections.
build: packages/core/src/constants.ts#L245
The values for CHAT_REQUEST_PER_MODEL_CONCURRENT_LIMIT and PROMISE_QUEUE_CONCURRENCY_DEFAULT are hard-coded. This could lead to scalability issues if these values need to be adjusted based on the environment or other factors. Consider making these values configurable through environment variables or a configuration file.
build: packages/core/src/types/prompt_template.d.ts#L2241
The value for containerPort has been changed from "80/tcp" to "8000/tcp". This could be a breaking change if there are other services or configurations that depend on the containerPort being "80/tcp". Ensure that this change is communicated to all stakeholders and that any dependent services or configurations are updated accordingly.

Artifacts

Produced during runtime
Name Size
genai-results
27.1 KB