Merge pull request #47 from JustinZeus/feat/live-scholar-progress-counter
fix(ingestion,frontend): show live counter immediately on run start
This commit is contained in:
commit
c6c89879c9
2 changed files with 4 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue