Skip to content

Commit db80a95

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

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
@@ -1523,6 +1523,10 @@ async def update_crawl_state(
15231523
stats, sizes = await self.get_redis_crawl_stats(redis, crawl.id)
15241524

15251525
# need to add size of previously completed WACZ files as well!
1526+
# TODO: This sometimes results in the crawl's stats.size being
1527+
# twice as large as expected when pausing crawls, as stats.size
1528+
# is not necessarily decremented once WACZ files are uploaded
1529+
# This then can have a downstream effects on the storage quota check
15261530
stats.size += status.filesAddedSize
15271531

15281532
# update status

0 commit comments

Comments
 (0)