Reset counter if background pool is full

This commit is contained in:
alesapin 2021-07-01 16:10:07 +03:00
parent 0b032e852d
commit 7792b09911

View File

@ -58,6 +58,7 @@ void IBackgroundJobExecutor::scheduleTask(bool with_backoff)
}
else
{
no_work_done_count = 0; /// We have work, but run without backoff
next_time_to_execute = 1000 * sleep_settings.thread_sleep_seconds_if_nothing_to_do;
}