Skip to content

Commit

Permalink
chore: Increase timeout time.
Browse files Browse the repository at this point in the history
  • Loading branch information
xixihahaliu committed Feb 26, 2024
1 parent aaf1bc3 commit ca0a1ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/run_for_cloud_option.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ while ! grep -q "Starting worker" /workspace/qanything_local/logs/debug_logs/san
elapsed_time=$((current_time - backend_start_time))

# 检查是否超时
if [ $elapsed_time -ge 60 ]; then
if [ $elapsed_time -ge 120 ]; then
echo "启动后端服务超时,请检查日志文件 /workspace/qanything_local/logs/debug_logs/sanic_api.log 获取更多信息。"
exit 1
fi
Expand Down Expand Up @@ -280,7 +280,7 @@ while true; do
echo "health response_embed_rerank = $response_embed_rerank"

# 检查是否超时
if [ $elapsed_time -ge 60 ]; then
if [ $elapsed_time -ge 120 ]; then
kill $tail_pid # 关闭后台的tail命令
echo "启动 embedding and rerank 服务超时,自动检查 $embed_rerank_log_file 中是否存在Error..."

Expand Down
6 changes: 3 additions & 3 deletions scripts/run_for_local_option.sh
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ while ! grep -q "Starting worker" /workspace/qanything_local/logs/debug_logs/san
elapsed_time=$((current_time - backend_start_time))

# 检查是否超时
if [ $elapsed_time -ge 60 ]; then
if [ $elapsed_time -ge 120 ]; then
echo "启动后端服务超时,请检查日志文件 /workspace/qanything_local/logs/debug_logs/sanic_api.log 获取更多信息。"
exit 1
fi
Expand Down Expand Up @@ -507,7 +507,7 @@ while true; do
fi

# 检查是否超时
if [ $elapsed_time -ge 60 ]; then
if [ $elapsed_time -ge 120 ]; then
kill $tail_pid # 关闭后台的tail命令
echo "启动 embedding and rerank 服务超时,自动检查 $embed_rerank_log_file 中是否存在Error..."

Expand Down Expand Up @@ -537,7 +537,7 @@ while true; do
elapsed_time=$((current_time - now_time))

# 检查是否超时
if [ $elapsed_time -ge 120 ]; then
if [ $elapsed_time -ge 300 ]; then
kill $tail_pid # 关闭后台的tail命令
echo "启动 LLM 服务超时,自动检查 $llm_log_file 中是否存在Error..."

Expand Down

0 comments on commit ca0a1ec

Please sign in to comment.