bev-project/cleanup_eval_hook.sh

22 lines
568 B
Bash
Raw Normal View History

#!/bin/bash
# 定期清理eval_hook临时文件防止磁盘满
echo "清理eval_hook临时文件..."
# 清理workspace下的eval_hook
find /workspace/bevfusion/runs -name ".eval_hook" -type d -exec rm -rf {} + 2>/dev/null
echo "✓ 清理/workspace/bevfusion/runs/.eval_hook"
# 清理data下的eval_hook
find /data/runs -name ".eval_hook" -type d -exec rm -rf {} + 2>/dev/null
echo "✓ 清理/data/runs/.eval_hook"
# 显示磁盘空间
echo ""
echo "当前磁盘空间:"
df -h | grep -E "(Filesystem|/workspace|/data)"
echo ""
echo "✅ 清理完成!"