@@ -7,7 +7,9 @@ const schemaQueueOptions = Joi.object().keys({
77 continueWaitTimeout : Joi . number ( ) . min ( 0 ) . integer ( ) ,
88 executionTimeout : Joi . number ( ) . min ( 0 ) . integer ( ) ,
99 orphanedTimeout : Joi . number ( ) . min ( 0 ) . integer ( ) ,
10- heartBeatInterval : Joi . number ( ) . min ( 0 ) . integer ( )
10+ heartBeatInterval : Joi . number ( ) . min ( 0 ) . integer ( ) ,
11+ sendProcessMessageFn : Joi . func ( ) ,
12+ sendCancelMessageFn : Joi . func ( ) ,
1113} ) ;
1214
1315const dbTypes = Joi . alternatives ( ) . try (
@@ -47,17 +49,21 @@ const schemaOptions = Joi.object().keys({
4749 updateCompilerCacheKeepAlive : Joi . boolean ( ) ,
4850 telemetry : Joi . boolean ( ) ,
4951 allowUngroupedWithoutPrimaryKey : Joi . boolean ( ) ,
50- orchestratorOptions : Joi . object ( ) . keys ( {
51- redisPrefix : Joi . string ( ) . allow ( '' ) ,
52- queryCacheOptions : Joi . object ( ) . keys ( {
53- refreshKeyRenewalThreshold : Joi . number ( ) . min ( 0 ) . integer ( ) ,
54- backgroundRenew : Joi . boolean ( ) ,
55- queueOptions : schemaQueueOptions
56- } ) ,
57- preAggregationsOptions : {
58- queueOptions : schemaQueueOptions
59- }
60- } ) ,
52+ orchestratorOptions : Joi . alternatives ( ) . try (
53+ Joi . func ( ) ,
54+ Joi . object ( ) . keys ( {
55+ redisPrefix : Joi . string ( ) . allow ( '' ) ,
56+ queryCacheOptions : Joi . object ( ) . keys ( {
57+ refreshKeyRenewalThreshold : Joi . number ( ) . min ( 0 ) . integer ( ) ,
58+ backgroundRenew : Joi . boolean ( ) ,
59+ queueOptions : schemaQueueOptions ,
60+ externalQueueOptions : schemaQueueOptions
61+ } ) ,
62+ preAggregationsOptions : {
63+ queueOptions : schemaQueueOptions
64+ }
65+ } )
66+ ) ,
6167 allowJsDuplicatePropsInSchema : Joi . boolean ( ) ,
6268 scheduledRefreshContexts : Joi . func ( )
6369} ) ;
0 commit comments