This is a follow-up confirmation.
Thanks to the code update, the multiple running to produce the cache file didn't happen as I checked.
For example, between 10:14 and 10:24 on July 24, it took longer time (more than 2 minutes) to transition the job from IDLE to RUN. After 110 seconds passed, the submitted job was automatically deleted to avoid the multiple running. This means that the script fix is working as intended.
(command memo: condor_history -constraint 'JobStatus == 3' | grep "detchar" | more)
Also, there were no duplicates in the cache file after July 23.
In addition, I also reproduced the cache files and segment files of 5/23, 6/9, 7/2, and 7/22.