-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SymlinkAndCleanup - make cleanup asynchronous and #163
Comments
Any news here? |
@elikoga could we prioritize this? |
Sure. As far as I undestand, we want to make what happens in this loop: batou_ext/src/batou_ext/file.py Lines 99 to 108 in 1cb0884
for el in self._list_removals():
batou.output.annotate("Removing: {}".format(el))
try:
if os.path.isdir(el):
shutil.rmtree(el)
else:
os.remove(el)
except OSError as e:
batou.output.error(f'Failed to remove "{el}": {e.strerror}')
pass Be defered to running in the background using |
Yup. |
When can we use this? |
Any news here? |
I'm back. Any news? |
Yes, the |
We tested this. This was not working. @zagy knows more about the problems as he was talking to my colleague. |
At least one customer has been bitten by the fact that cleanups may take a very long time.
The cleanup IMHO should spawn a systemd-run job for the
rm -rf
and limit IOPS to something like 100 iops/s to ensure the cleanup job doesn't overload the system.The text was updated successfully, but these errors were encountered: