Error as warning only when falling back to stitching
This commit is contained in:
@@ -17,7 +17,7 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
|
||||
#fi
|
||||
|
||||
if [[ '$XSP' = ${theSymbol} ]]; then
|
||||
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+400 days")
|
||||
./recordOptionChainSingleSymbolSingleRun.sh -ErrorAsWarning ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+400 days")
|
||||
if [[ $? -ne 0 ]]; then
|
||||
systemd-cat -t "`basename $0`" -p warning <<< "falling back to stitching for ${theSymbol}"
|
||||
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+400 days")
|
||||
@@ -30,7 +30,7 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
|
||||
fi
|
||||
|
||||
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 -ErrorAsWarning ${theSymbol} fromDate $(date "+%Y-%m-%d" -d "+40 days") toDate $(date "+%Y-%m-%d" -d "+46 days")
|
||||
if [[ $? -ne 0 ]]; then
|
||||
touch temp/hadErrors.$$.tmp
|
||||
fi
|
||||
@@ -38,7 +38,7 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
|
||||
fi
|
||||
|
||||
#Default behavior - fall back to stitching on error
|
||||
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol}
|
||||
./recordOptionChainSingleSymbolSingleRun.sh -ErrorAsWarning ${theSymbol}
|
||||
if [[ $? -ne 0 ]]; then
|
||||
systemd-cat -t "`basename $0`" -p warning <<< "falling back to stitching for ${theSymbol}"
|
||||
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
|
||||
|
||||
Reference in New Issue
Block a user