Implement stitiching as fallback, better error handling, add new symbols.

This commit is contained in:
2024-06-20 09:34:11 -05:00
parent 5f49216a88
commit d242be4d5e
4 changed files with 11 additions and 8 deletions

View File

@@ -19,11 +19,13 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
if [[ '$XSP' = ${theSymbol} ]]; then
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+200 days")
if [[ $? -ne 0 ]]; then
touch temp/hadErrors.$$.tmp
systemd-cat -t "`basename $0`" -p warning <<< "falling back to stitching for ${theSymbol}"
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
if [[ $? -ne 0 ]]; then
touch temp/hadErrors.$$.tmp
fi
fi
# The above one might fail, so we also try with stitching
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
continue
fi
@@ -37,7 +39,6 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
fi
fi
# The above one might fail, so we also try with stitching
continue
fi