Show recent runs not working properly
On artdaq_runcontrol_gui we've seen that run numbers are not increasing after stopping a run, look at: #24081
We use the script:
daqinterface/bin/show_recent_runs.sh to query the run number.
Investigating this script on a terminal, outside GUI, we're not getting the actual last run number if we do:
Not even if we do:
If we ask for a number greater than the runs, we do get the last run number (duh!) but is not ordered. Hence not really useful.
JCF: Issue #24105: touch the run record subdirectory on start to timestamp it with the start time, not the time that it was created on the config transition
#3 Updated by John Freeman 8 months ago
- % Done changed from 0 to 100
- Status changed from New to Resolved
Talking with Esteban and Gennadiy, what I found out was that the mtime of a run record subdirectory was the time it was originally created in /tmp/run_record_attempted_$USER, during the config transition and prior to being copied over to the run records directory at the beginning of the start transition. In a situation where there are multiple start-stops off a single configuration, this means that the "ls -tr1" of show_recent_runs.sh won't be able to distinguish chronologically between these runs.
I've added a line in commit 5d1d6162a5e810743192f3b673ee37119745de4a of bugfix/24105_chronological_ordering_of_run_records whereby, immediately after copying a run record into the run records directory, it calls the "touch" function to make its mtime match up with run start. This way "ls -tr1" will be able to reveal which runs began when, even if multiple start-stops were performed off of a config.