Increase retry timeout when deleting files or folders
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 960
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist
- [X] I have verified this is the correct repository for opening this issue.
- [X] I have verified no other issues exist related to my request.
### Is Your Feature Request Related To A Problem? Please describe.
This is related to issue #3490.
When Chocolatey CLI tries to delete a file or folder, it waits for 300ms before trying again 3 times and then taking action.
### Describe The Solution. Why is it needed?
Chocolatey CLI should increase the timeout to wait before retrying and / or increase the number of retry attempts. This may help in situations where AV is holding a file open for scanning.
I would suggest the wait is 1s, and we retry 5 times for a total of a 5s delay. As these situations are uncommon, a 5s delay is reasonable. Happy to hear other views.
### Additional Context
_No response_
### Related Issues
- #3490
Contributor guide
Research direction
No file or test is named. Start by tracing Chocolatey CLI's file and folder deletion retry behavior, then read related issue #3490 for context; done means the agreed retry interval and attempt count are implemented and deletion handles temporarily locked files as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100