This commit is contained in:
Oleg Sheynin 2024-10-29 19:07:30 -04:00
parent db7ea93c6b
commit 5789ba3cad
2 changed files with 6 additions and 10 deletions

View File

@ -82,11 +82,14 @@ if is_container_running "$ContainerName"; then
exit 3
fi
if [ -n "${date_to_load}" ]; then
date_to_load=$(get_prev_business_day $(date '+%Y-%m-%d'))
if [ -z "${date_to_load}" ]; then
echo "date_to_load is empty"
date_to_load=$(get_prev_business_day $(date -d "yesterday" '+%Y-%m-%d'))
echo "Historical Data for ${date_to_load}"
fi
echo "date_to_load=${date_to_load}"
Cmd="docker run"
Cmd="${Cmd} --pull=always"
Cmd="${Cmd} --network=host"
@ -103,10 +106,3 @@ eval $Cmd
if [ "$?" != "0" ] ; then
exit 1 # if killed we do not save last day
fi
# # truncate to avoid false positive
# date_to_load=$(echo "${date_to_load}" | xargs)
# if [ -n "${date_to_load}" ]; then
# echo "Saving date_to_load to ${LastDayFile}"
# echo ${date_to_load} > ${LastDayFile}
# fi

View File

@ -1 +1 @@
1.7.2.Fix1,alpaca md QAT
1.7.2.Fix2,alpaca md QAT