qa-catalogue
qa-catalogue copied to clipboard
Making output intact
The output files now are created into a single directory, so if there were previous results they are overwritten. Since the process might take long time, during the process the user of the UI will get mixed results: some tabs show information from the previous run, some from the current. It might also happen that some tabs will show partial results, because the output full file is not ready. We need a "staging" process, where the directory which is used by the UI is a symbolic link to the latest successfully finished output. The easiest way is to add a timestamp as a suffix for the directory name, such as:
- gent -> gent-2020-06-12
- gent-2020-06-12
- gent-2020-06-05
At the end of the process the current symbolic link is deleted an a new one is created to the latest version.
Hint: to get the actual path of a symbolic link, we can use the following command:
readlink -f gent