This commit is contained in:
alesapin 2021-07-02 18:25:05 +03:00
parent 5e79c68e8e
commit b4b54a0549

View File

@ -61,7 +61,6 @@ void IBackgroundJobExecutor::scheduleTask(bool with_backoff)
no_work_done_count = 0;
next_time_to_execute = 1000 * sleep_settings.thread_sleep_seconds_if_nothing_to_do;
}
LOG_DEBUG(&Poco::Logger::get("DEBUG"), "NO WORK DONE TIMES {}", no_work_done_count);
scheduling_task->scheduleAfter(next_time_to_execute, false);
}
@ -177,7 +176,7 @@ void IBackgroundJobExecutor::triggerTask()
{
std::lock_guard lock(scheduling_task_mutex);
if (scheduling_task)
scheduling_task->schedule();
runTaskWithoutDelay();
}
void IBackgroundJobExecutor::backgroundTaskFunction()