Compare commits

...

2 Commits

Author SHA1 Message Date
oleg 03c341cefb fix2 2024-10-29 19:07:30 -04:00
oleg db7ea93c6b fix 2024-10-29 18:38:21 -04:00
2 changed files with 6 additions and 10 deletions
+5 -9
View File
@@ -82,11 +82,14 @@ if is_container_running "$ContainerName"; then
exit 3 exit 3
fi fi
if [ -n "${date_to_load}" ]; then if [ -z "${date_to_load}" ]; then
date_to_load=$(get_prev_business_day ${date_to_load}) 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}" echo "Historical Data for ${date_to_load}"
fi fi
echo "date_to_load=${date_to_load}"
Cmd="docker run" Cmd="docker run"
Cmd="${Cmd} --pull=always" Cmd="${Cmd} --pull=always"
Cmd="${Cmd} --network=host" Cmd="${Cmd} --network=host"
@@ -103,10 +106,3 @@ eval $Cmd
if [ "$?" != "0" ] ; then if [ "$?" != "0" ] ; then
exit 1 # if killed we do not save last day exit 1 # if killed we do not save last day
fi 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
+1 -1
View File
@@ -1 +1 @@
1.7.2,alpaca md QAT 1.7.2.Fix2,alpaca md QAT