diff --git a/hydra-module.nix b/hydra-module.nix index 470f842d..0933e9a6 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -271,9 +271,11 @@ in '' #! ${pkgs.stdenv.shell} if [ $(($(stat -f -c '%a' /nix/store) * $(stat -f -c '%S' /nix/store))) -lt $((${toString cfg.minimumDiskFree} * 1024**3)) ]; then + echo "stopping Hydra queue runner due to lack of free space..." systemctl stop hydra-queue-runner fi if [ $(($(stat -f -c '%a' /nix/store) * $(stat -f -c '%S' /nix/store))) -lt $((${toString cfg.minimumDiskFreeEvaluator} * 1024**3)) ]; then + echo "stopping Hydra evaluator due to lack of free space..." systemctl stop hydra-evaluator fi '';