Show processed/total counts in task progress indicator
This commit is contained in:
parent
6d8f69610f
commit
0ca955796e
3 changed files with 24 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ async def dump_listings_and_monitor(
|
|||
)
|
||||
task.update_state(
|
||||
state=f"Progress: {progress_ratio * 100}% ({progress} out of {len(missing_ids)})",
|
||||
meta={"progress": progress_ratio},
|
||||
meta={"progress": progress_ratio, "processed": progress, "total": len(missing_ids)},
|
||||
)
|
||||
await asyncio.sleep(1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue