Skip to content

Commit c15c1ec

Browse files
committed
Add TODO to address already-existing bug that now matters more
1 parent 1472129 commit c15c1ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/btrixcloud/operator/crawls.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,10 @@ async def update_crawl_state(
15351535
stats, sizes = await self.get_redis_crawl_stats(redis, crawl.id)
15361536

15371537
# need to add size of previously completed WACZ files as well!
1538+
# TODO: This sometimes results in the crawl's stats.size being
1539+
# twice as large as expected when pausing crawls, as stats.size
1540+
# is not necessarily decremented once WACZ files are uploaded
1541+
# This then can have a downstream effects on the storage quota check
15381542
stats.size += status.filesAddedSize
15391543

15401544
# update status

0 commit comments

Comments
 (0)