unzip-bot
unzip-bot copied to clipboard
[BUG] `sufficient_disk_space` is often wrong on different servers for an unknown reason
What it means and how to solve ?
This message is sent when the task that would be processed would leave less than 5% of disk space available.
It all comes down to this function : https://github.com/EDM115/unzip-bot/blob/47581cb27842568afb6fafcf8d79a6295a7d3a7a/unzipper/modules/commands.py#L49-L57
psutil have consistently given absolutely wrong values, and I have no fix for that. The reason why it's wrong is unknown to me.
As a quick fix, you can make this function return True all the time, although it's really a bad fix
[!NOTE]
This issue will stay open until I find a way to fix this shit
probably an issue where psutil reports values from the entire machine, even if splitted in multiple VMs