record control directory in file within prefix directory for postrun scripts
@adammoody is already working on this.
Since Jun 9, 2021.
- Dominant language
- C
- Stars
- 108
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
The scr_postrun script needs to know the control directory in order to query for datasets to scavenge:
The control directory used to be a constant set at configure time, so it could be hardcoded on the install step. However, the user is now free to change the control directory by setting the SCR_CNTL_BASE parameter, including through calls to SCR_Config.
This is also used in the run and list_down_nodes scripts, e.g.,:
https://github.com/LLNL/scr/blob/37b11f8556e5942899a81d339d00eb4cb7a1ea4d/scripts/SLURM/scr_run.in#L106
https://github.com/LLNL/scr/blob/37b11f8556e5942899a81d339d00eb4cb7a1ea4d/scripts/SLURM/scr_list_down_nodes.in#L171
We need to record this value in the prefix directory so that the postrun script can read it. While at it, we could perhaps also record the set of cache directories being used in the same file.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.