Files
deer-flow/thread-cleanup.sh
2026-03-31 00:20:48 +02:00

4 lines
207 B
Bash
Executable File

#!/bin/bash
find /opt/deer-flow/backend/.deer-flow/threads -mindepth 1 -maxdepth 1 -type d -mtime +30 -exec rm -rf {} + 2>/dev/null
echo "$(date) DeerFlow thread cleanup" >> /opt/deer-flow/logs/watchdog.log