-
Notifications
You must be signed in to change notification settings - Fork 10
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
Initial commit to produce a list of (framework) files to be deleted from storage #71
Conversation
Thanks for that!
I'm afraid USERNAME is not always the same between ingrid and crab / storage, so it's needed to be configurable.
This is the hardest part since there's basically no way to tell if the task comes from the framework or not. We may think of adding in the output path a tag (like |
Actually, we could think of opening one ROOT file, and see if there's a tree named |
or also, thinking about this: shouldn't there be a mention of the local submission path in some crab xml output ? we could then spot |
I checked into an XML file, and there's no mention of the submission path, since it's the job report (see /storage/data/cms/store/user/sbrochet/TTTo2L2Nu_13TeV-powheg/TTTo2L2Nu_13TeV-powheg_MiniAODv2/160210_181039/0000/log/cmsRun_1.log.tar.gz for example). However, one solution could be to look into the output log, but it'll work only if the user chose to store the log file to the storage (which is the case when running GridIn) |
Now passing username as argument
PR updated:
In my case the additional checks seem to succeed:
These are all old framework tasks that crashed violently a while ago before any framework sequence could be run... So in principle I don't know what these tasks are, at all (though in practice I was running only FW stuff at that time) |
Initial commit to produce a list of (framework) files to be deleted from storage
Addresses #25
Script that:
author
or inpath
/storage/data/cms/store/user/USERNAME
Note that it currently miss the check :
listed in #25 : I am not sure of a clean way to check this...
More eyes on the script are very welcome
the output is something like the following (yes, I know, I am deleting these)