fix(gitea_runner): address review of the prune count and threshold
Give each new input its own assert message so every refused-input case matches only its own input, and cover a negative count and a bad disk check schedule. Fire the pressure prune only above the threshold, as the inputs describe it. Name the disk check script apart from the pressure service, prefix the new registers as internal, and keep the new comments short. Refs #319 Assisted-by: Claude Code
This commit is contained in:
1 parent
f50ecc2945
commit
e91c074373
10 files changed
+86
-63
No files matched your search
@@ -245,7 +245,7 @@ argument_specs:
|
||||
default: 0
|
||||
description:
|
||||
- >-
|
||||
Use, in percent, of the filesystem holding the Docker root at which
|
||||
Use, in percent, of the filesystem holding the Docker root above which
|
||||
C(gitea-runner-docker-prune-pressure.service) runs the count prune and a builder prune capped at
|
||||
C(gitea_runner_docker_prune_builder_keep_storage), behind the same job gate as the weekly prune. C(0) turns it
|
||||
off, and setting it back to C(0) stops the timer and removes its units. C(1) to C(99), and above C(0) only with
|
||||
|
||||
Reference in new issue
Block a user