fix(ingestion,frontend): show live counter immediately on run start #47

Merged
JustinZeus merged 1 commit from feat/live-scholar-progress-counter into main 2026-03-03 18:38:37 +01:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 2c591a0ca3 - Show all commits

View file

@ -420,6 +420,7 @@ async def run_scholar_iteration(
{"visited": visited, "finished": finished, "total": total},
)
await _emit()
first_pass_cstarts = await _run_first_pass(
db_session,
scholars=scholars,

View file

@ -487,9 +487,9 @@ watch(
</div>
<p class="mt-2 text-sm text-secondary">
Started {{ formatDate(displayedLatestRun.start_dt) }}.
<template v-if="runStatus.isLikelyRunning && runStatus.scholarProgress">
{{ runStatus.scholarProgress.visited }} / {{ runStatus.scholarProgress.total }} visited
· {{ runStatus.scholarProgress.finished }} finished
<template v-if="runStatus.isLikelyRunning">
{{ runStatus.scholarProgress?.visited ?? 0 }} / {{ runStatus.scholarProgress?.total ?? '…' }} visited
· {{ runStatus.scholarProgress?.finished ?? 0 }} finished
· {{ displayedLatestRun.new_publication_count }} new publications.
</template>
<template v-else>