Skip to content

Commit c4596b3

Browse files
authored
Merge pull request ClickHouse#79257 from ClickHouse/fix_query_metric_log_schedule
Skip missed QueryMetricLog updates
2 parents 7e08bf7 + b0d8a71 commit c4596b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Interpreters/QueryMetricLog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ void QueryMetricLogStatus::scheduleNext(String query_id)
223223
{
224224
LOG_TEST(logger, "The next collecting task for query {} should have already run at {}. Scheduling it right now",
225225
query_id, timePointToString(info.next_collect_time));
226+
227+
/// Skipping lost runs
228+
info.next_collect_time = now;
226229
info.task->schedule();
227230
}
228231
}

0 commit comments

Comments
 (0)