Reorganize scripts to consider time (when they run), priority (order), and type (type os the script)
Reorganize scripts/files to consider time (when they run), priority (order), and type (type os the script)
Internally managed and VO added (via configuration) files currently have some attributes that specify the type of the file (tar, executable, ...) and in which order it should be executed (pre-group, post-entry).
There is no guaranteed order within each group.
Just recently was added the possibility to have scripts at cleanup, before that, only setup and periodic scripts were allowed.
- type: tar, source, run, file, ... , with some types qualified, ex :singularity to run in Singularity
- time: the step of the glidein execution where the script will be run/sourced (if so)
- priority: a priority class, allowing at least the 5 classes resulting from the previous flags, to coordinate between Frontend, Factory, global parts and group/entry