diff --git a/release_version.txt b/release_version.txt index 2db813a..881fe43 100644 --- a/release_version.txt +++ b/release_version.txt @@ -1 +1 @@ -1.8.1,build for cvtt-rust uses cargo install +1.8.2,md eqty checklist to use new structure diff --git a/scripts/mkt_data/checklists/eqty_md_chcklst.sh b/scripts/mkt_data/checklists/eqty_md_chcklst.sh index a59afdc..ba55880 100755 --- a/scripts/mkt_data/checklists/eqty_md_chcklst.sh +++ b/scripts/mkt_data/checklists/eqty_md_chcklst.sh @@ -7,7 +7,6 @@ usage() { } RootDir="${HOME}/prod" -# RootDir=/home/oleg/develop/cvtt2 ###### D E B U G export PYTHONPATH=${RootDir} @@ -15,28 +14,33 @@ StatusChannel="MD-Status" Sender=${RootDir}/ops/utils/send_mmost.sh # ----- For DEBUGGING -# Sender=cat -# StatusChannel= +# RootDir=/home/oleg/develop/cvtt2 ###### D E B U G +# Sender=cat #### D E B U G +# StatusChannel= #### D E B U G run_checklist() { yr=$(date -d 'yesterday' '+%Y') - + CheckSymbols="A/AAPL N/NVDA M/META" declare -A Commands - Commands["homestore"]="ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/A/AAPL/${yr} | tail -3" - Commands["homestore"]+="; echo" - Commands["homestore"]+="; ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/N/NVDA/${yr} | tail -3" + Commands["homestore"]="" + for sym in ${CheckSymbols}; do + Commands["homestore"]+="ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/${yr}/${sym} | tail -3; " + done + Commands["homestore"]+="echo" - Commands["cloud21"]="ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/A/AAPL/${yr} | tail -3" - Commands["cloud21"]+="; echo" - Commands["cloud21"]+="; ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/N/NVDA/${yr} | tail -3" + Commands["cloud21"]="" + for sym in ${CheckSymbols}; do + Commands["cloud21"]+="ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/${yr}/${sym} | tail -3; " + done + Commands["cloud21"]+="echo" Commands["gpushnik"]="ssh oleg@gpushnik.cvtt.vpn 'ls -l /opt/jupyter_gpu/data/eqty_md | tail -10'" for name in $(printf "%s\n" "${!Commands[@]}" | sort); do - Cmd=${Commands[${name}]} echo "------- ${name}" + Cmd=${Commands[${name}]} echo ${Cmd} eval ${Cmd} done