DEVPROD-14995: remove check for number of task directories that fail to clean up #8810
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DEVPROD-14995
Description
After looking at some hosts in prod, it seems like the agent unfortunately fails to clean up task directories pretty often on static hosts. While failing to clean up the task directory a few times should warrant a quarantine, it's more work to manage the more frequent quarantines (and I believe fixing the underlying task directory cleanup issue isn't that easy).
To make quarantines less frequent, I reduced the data directory health check to just see how much disk space is remaining, which is the most important thing when deciding whether or not to run the next task.
Testing
Existing tests pass.