[codex] fix scanner first cycle startup delay (#2137)

This commit is contained in:
安正超
2026-03-11 20:02:01 +08:00
committed by GitHub
parent 5625f04697
commit ac43a44a00

View File

@@ -258,6 +258,11 @@ pub async fn run_data_scanner(ctx: CancellationToken, storeapi: Arc<ECStore>) ->
}
}
if !ctx.is_cancelled() {
// Preserve previous behavior: run one cycle immediately after lock acquisition.
run_data_scanner_cycle(&ctx, &storeapi, &mut cycle_info).await;
}
loop {
if ctx.is_cancelled() {
break;