SPB Git

spb/autoscholar

Public
307 B · 6 lines shellscript
1#!/bin/bash2# Deletes worker run workspaces older than KEEP_DAYS (default 14). Run on the worker node as asworker or root.3set -euo pipefail4ROOT="${WORKER_ROOT:-/var/autoscholar}/runs"; KEEP_DAYS="${KEEP_DAYS:-14}"5find "$ROOT" -mindepth 1 -maxdepth 1 -type d -mtime +"$KEEP_DAYS" -print -exec rm -rf {} +6
Files · 92ac91ccf92462b603d014c0325ba84f64d10ea5
Menu

Theme