ad_xgboost_threshold_update_task.sh 374 B

1234567891011121314151617
  1. #!/bin/bash
  2. source ~/.bash_profile
  3. conda activate rov-offline-py38
  4. cd /data/rov-offline
  5. now_date=`date +"%Y%m%d"`
  6. echo "now_date: $now_date"
  7. # 阈值计算
  8. echo "ad_xgboost_threshold_update start..."
  9. python ad_xgboost_threshold_update.py
  10. if [ $? -ne 0 ];
  11. then
  12. msg = "[ERROR] ad_xgboost_threshold_update.py"
  13. echo $msg
  14. exit -1
  15. fi
  16. echo "ad_xgboost_threshold_update end!"