Skip to content
Snippets Groups Projects
Commit d8bffd2c authored by Chad Hanna's avatar Chad Hanna
Browse files

gstlal_inspiral_marginalize_likelihoods_online: sleep first in the loop, make...

gstlal_inspiral_marginalize_likelihoods_online: sleep first in the loop, make sure you do not clobber output if the marginalize job doesn't process anything
parent 1212572d
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,9 @@ OUTPUT=$2
while true ; do
# FIXME the correct thing to do!
gstlal_inspiral_marginalize_likelihood --verbose --ignore-missing --output ${OUTPUT}.next.gz $(grep -h likelihood.xml ${REGPATH}/*registry*.txt) || break
echo "...sleeping for 3600 seconds..."
sleep 3600 # 1 hour
cp ${OUTPUT} ${OUTPUT}.next.gz
gstlal_inspiral_marginalize_likelihood --verbose --ignore-missing --output ${OUTPUT}.next.gz $(grep -s -h likelihood.xml ${REGPATH}/*registry*.txt) || break
mv -f ${OUTPUT}.next.gz ${OUTPUT} || break
sleep 300 # five minutes
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment