Skip to content

Commit

Permalink
fix(server-core): Specify maximum for continueWaitTimeout (90 seconds)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Oct 25, 2023
1 parent be53184 commit 09fd6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cubejs-server-core/src/core/optionsValidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import DriverDependencies from './DriverDependencies';

const schemaQueueOptions = Joi.object().strict(true).keys({
concurrency: Joi.number().min(1).integer(),
continueWaitTimeout: Joi.number().min(0).integer(),
continueWaitTimeout: Joi.number().min(0).max(90 * 1000).integer(),
executionTimeout: Joi.number().min(0).integer(),
orphanedTimeout: Joi.number().min(0).integer(),
heartBeatInterval: Joi.number().min(0).integer(),
Expand Down Expand Up @@ -128,7 +128,7 @@ const schemaOptions = Joi.object().keys({
idleTimeoutMillis: Joi.number().min(0),
})
}),
continueWaitTimeout: Joi.number().min(0).integer(),
continueWaitTimeout: Joi.number().min(0).max(90 * 1000).integer(),
skipExternalCacheAndQueue: Joi.boolean(),
queryCacheOptions: Joi.object().keys({
refreshKeyRenewalThreshold: Joi.number().min(0).integer(),
Expand Down

0 comments on commit 09fd6b1

Please sign in to comment.