make falling back to stitching the default behavior.
This commit is contained in:
@@ -29,19 +29,6 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
|
||||
continue
|
||||
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
|
||||
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} fromDate $(date "+%Y-%m-%d" -d "+40 days") toDate $(date "+%Y-%m-%d" -d "+46 days")
|
||||
if [[ $? -ne 0 ]]; then
|
||||
@@ -50,9 +37,14 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
|
||||
continue
|
||||
fi
|
||||
|
||||
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol}
|
||||
#Default behavior - fall back to stitching on error
|
||||
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol}
|
||||
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
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user