bev-project/cleanup_eval_hook.sh

22 lines
568 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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 "✅ 清理完成!"