Skip to content

Commit 695d696

Browse files
committed
fix tests
1 parent 26817c9 commit 695d696

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ydb/core/kqp/runtime/kqp_compute_scheduler.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,9 @@ class TSchedulerActor : public TActorBootstrapped<TSchedulerActor> {
498498
NActors::TExecutorPoolStats poolStats;
499499
TVector<NActors::TExecutorThreadStats> threadsStats;
500500
TlsActivationContext->ActorSystem()->GetPoolStats(poolId, poolStats, threadsStats);
501-
Y_ENSURE(poolStats.MaxThreadCount > 0);
502-
Opts.Counters->SchedulerCapacity->Set(poolStats.MaxThreadCount);
503-
Opts.Scheduler->SetCapacity(poolStats.MaxThreadCount);
501+
ui64 threads = Max<ui64>(poolStats.MaxThreadCount, 1);
502+
Opts.Counters->SchedulerCapacity->Set(threads);
503+
Opts.Scheduler->SetCapacity(threads);
504504
}
505505

506506
STATEFN(State) {

0 commit comments

Comments
 (0)