make falling back to stitching the default behavior.

This commit is contained in:
2024-08-09 08:46:53 -05:00
parent e9a651f92e
commit 9526e12abd

View File

@@ -29,19 +29,6 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
continue continue
fi fi
if [[ 'SPY' = ${theSymbol} ]]; then
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol}
if [[ $? -ne 0 ]]; then
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
continue
fi
if [[ '$SPX' = ${theSymbol} ]]; then if [[ '$SPX' = ${theSymbol} ]]; then
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} fromDate $(date "+%Y-%m-%d" -d "+40 days") toDate $(date "+%Y-%m-%d" -d "+46 days") ./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} fromDate $(date "+%Y-%m-%d" -d "+40 days") toDate $(date "+%Y-%m-%d" -d "+46 days")
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
@@ -50,10 +37,15 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
continue continue
fi fi
#Default behavior - fall back to stitching on error
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} ./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol}
if [[ $? -ne 0 ]]; then
systemd-cat -t "`basename $0`" -p warning <<< "falling back to stitching for ${theSymbol}"
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
touch temp/hadErrors.$$.tmp touch temp/hadErrors.$$.tmp
fi fi
fi
done done
if [[ -e temp/hadErrors.$$.tmp ]]; then if [[ -e temp/hadErrors.$$.tmp ]]; then