您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. #
  3. # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. set -e
  18. BASE_DIR="$(cd "$(dirname "$0")/.." && pwd)"
  19. cd "$BASE_DIR"
  20. echo "🛑 Stopping all services..."
  21. docker compose down
  22. echo "🧹 Deleting sandbox containers..."
  23. if [ -f .env ]; then
  24. source .env
  25. for i in $(seq 0 $((SANDBOX_EXECUTOR_MANAGER_POOL_SIZE - 1))); do
  26. echo "🧹 Deleting sandbox_python_$i..."
  27. docker rm -f "sandbox_python_$i" >/dev/null 2>&1 || true
  28. echo "🧹 Deleting sandbox_nodejs_$i..."
  29. docker rm -f "sandbox_nodejs_$i" >/dev/null 2>&1 || true
  30. done
  31. else
  32. echo "⚠️ .env not found, skipping container cleanup"
  33. fi
  34. echo "✅ Stopping and cleanup complete"