Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
if (this.opts.enableTasksQueue) {
if ((opts.tasksQueueOptions?.concurrency as number) <= 0) {
throw new Error(
- `Invalid tasks queue concurrency '${
+ `Invalid worker tasks concurrency '${
(opts.tasksQueueOptions as TasksQueueOptions).concurrency as number
}'`
)
* @enum
*/
export enum PoolType {
+ /**
+ * Fixed pool type.
+ */
FIXED = 'fixed',
+ /**
+ * Dynamic pool type.
+ */
DYNAMIC = 'dynamic'
}
* Pool worker tasks usage statistics requirements.
*/
export interface RequiredStatistics {
+ /**
+ * Require tasks run time.
+ */
runTime: boolean
+ /**
+ * Require tasks average run time.
+ */
avgRunTime: boolean
+ /**
+ * Require tasks median run time.
+ */
medRunTime: boolean
}