run.sh 781 B

1234567891011121314151617181920212223242526272829
  1. dates=("2017-06-01" "2017-07-01" "2017-08-01" "2017-09-01" "2017-10-01" "2017-11-01" "2017-12-01" "2018-01-01" "2018-02-01" "2018-03-01" "2018-04-01" "2018-05-01" "2018-06-01" "2018-07-01" "2018-08-01" "2018-09-01" "2018-10-01")
  2. for date in ${dates[@]}
  3. do
  4. echo "start del $date"
  5. curl -XPOST localhost:8000/x/internal/job/up-rating/score/del?date=$date
  6. if [[ $? != 0 ]]; then
  7. exit
  8. fi
  9. echo ------------\n
  10. done
  11. for date in ${dates[@]}
  12. do
  13. echo "start run $date"
  14. for ((i=0;i<=22;i++)); do
  15. echo "start run past $date", $i
  16. curl -XPOST localhost:8000/x/internal/job/up-rating/past/score?date=$date
  17. if [[ $? != 0 ]]; then
  18. exit
  19. fi
  20. done
  21. curl -XPOST localhost:8000/x/internal/job/up-rating/score?date=$date
  22. if [[ $? != 0 ]]; then
  23. exit
  24. fi
  25. echo ------------\n
  26. done