Problem
The downloader writes ZIP files to disk without checking available disk space first. With ~380 files in the feed at any time and each ZIP potentially several MB, a full disk causes a partial write that is silently marked failed. Subsequent runs re-attempt and fail again, filling logs.
Expected behavior
Before starting a download batch, check available disk space against the total size of files to be downloaded (using the file size from the ERCOT document list response if available, or a configured minimum threshold). Emit a clear error and abort the run if space is insufficient rather than attempting downloads that will fail mid-write.
Problem
The downloader writes ZIP files to disk without checking available disk space first. With ~380 files in the feed at any time and each ZIP potentially several MB, a full disk causes a partial write that is silently marked failed. Subsequent runs re-attempt and fail again, filling logs.
Expected behavior
Before starting a download batch, check available disk space against the total size of files to be downloaded (using the file size from the ERCOT document list response if available, or a configured minimum threshold). Emit a clear error and abort the run if space is insufficient rather than attempting downloads that will fail mid-write.