init
This commit is contained in:
7
neuralink/build/cleaner/cleaner.sh
Executable file
7
neuralink/build/cleaner/cleaner.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true; do
|
||||
psql postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@db:5432/$POSTGRES_DB -c "DELETE FROM users WHERE timestamp <= NOW() - INTERVAL '15 minutes'";
|
||||
psql postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@db:5432/$POSTGRES_DB -c "DELETE FROM implants WHERE timestamp <= NOW() - INTERVAL '15 minutes'";
|
||||
sleep 60;
|
||||
done
|
||||
Reference in New Issue
Block a user