Compare commits

...

2 Commits

Author SHA1 Message Date
oleg 72d5a849be 2024-09-23 08:04:54 -04:00
oleg 6125b10935 minor 2024-09-23 04:13:31 -04:00
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
date_to_load=${1} date_to_load=${1} # YYYY-MM-DD
DockerRegistry=cloud21.cvtt.vpn:5500 DockerRegistry=cloud21.cvtt.vpn:5500
DockerImage=${DockerRegistry}/alpaca_md_day #:latest DockerImage=${DockerRegistry}/alpaca_md_day #:latest
@@ -46,7 +46,7 @@ get_prev_business_day() {
export -f get_prev_business_day export -f get_prev_business_day
if [ -z ${date_to_load} ] ; then if [ -z ${date_to_load} ] ; then
echo "Yesterday data has priority. Running historical container will be stopped" echo "Date is not specified. Yesterday data has priority. Running historical container will be stopped"
Cmd="docker stop ${ContainerName}" Cmd="docker stop ${ContainerName}"
echo ${Cmd} && eval ${Cmd} echo ${Cmd} && eval ${Cmd}
Cmd="docker kill ${ContainerName}" Cmd="docker kill ${ContainerName}"
@@ -62,6 +62,7 @@ if [ -z ${date_to_load} ] ; then
exit 3 exit 3
fi fi
else else
date_to_load=$(date -d ${date_to_load} '+%Y-%m-%d') #expected format
echo "Historical run ${date_to_load}" echo "Historical run ${date_to_load}"
if is_container_running "$ContainerName"; then if is_container_running "$ContainerName"; then
echo "Container ${ContainerName} is already running." echo "Container ${ContainerName} is already running."
+1 -1
View File
@@ -1 +1 @@
1.6.8,cleaned out several docker scripts. added checklist sources 1.7.1,alpaca md hist convertitn date to the right format to be used for trading calendar