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 · 0d8280a29f83e41fbeda1fded3fa94709eba2e7d
Menu

Theme