Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 72d5a849be | |||
| 6125b10935 |
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
date_to_load=${1}
|
||||
date_to_load=${1} # YYYY-MM-DD
|
||||
|
||||
DockerRegistry=cloud21.cvtt.vpn:5500
|
||||
DockerImage=${DockerRegistry}/alpaca_md_day #:latest
|
||||
@@ -46,7 +46,7 @@ get_prev_business_day() {
|
||||
export -f get_prev_business_day
|
||||
|
||||
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}"
|
||||
echo ${Cmd} && eval ${Cmd}
|
||||
Cmd="docker kill ${ContainerName}"
|
||||
@@ -62,6 +62,7 @@ if [ -z ${date_to_load} ] ; then
|
||||
exit 3
|
||||
fi
|
||||
else
|
||||
date_to_load=$(date -d ${date_to_load} '+%Y-%m-%d') #expected format
|
||||
echo "Historical run ${date_to_load}"
|
||||
if is_container_running "$ContainerName"; then
|
||||
echo "Container ${ContainerName} is already running."
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user