Merge pull request #1389 from ucb-bar/more-agg-cleanup

Remove stale conda env's after 2 days
This commit is contained in:
Abraham Gonzalez
2023-03-08 16:36:50 -08:00
committed by GitHub

View File

@@ -22,7 +22,7 @@ runs:
echo "Skipping removal of $envname since it cannot be parsed into a date"
else
NUM_DIFF=$(( ( $(date +%s) - $(date --date="$ENV_DATE" +%s) )/(60*60*24) ))
if (( $NUM_DIFF > 7 )); then
if (( $NUM_DIFF > 2 )); then
echo "Removing $envname since it is $NUM_DIFF days old."
conda env remove -n $envname
else