Skip to content

Commit

Permalink
Make hydra-queue-runner want network-online.target
Browse files Browse the repository at this point in the history
Just ordering yourself after network-online.target will not guarantee
that it will be loaded. You'll have to either want or require it. Hence
the following trace on recent nixpkgs versions:

evaluation warning: hydra-queue-runner.service is ordered after 'network-online.target' but doesn't depend on it
  • Loading branch information
mweinelt committed Dec 3, 2024
1 parent 3b16941 commit efadb6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos-modules/hydra.nix
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ in
systemd.services.hydra-queue-runner =
{ wantedBy = [ "multi-user.target" ];
requires = [ "hydra-init.service" ];
wants = [ "network-online.target" ];
after = [ "hydra-init.service" "network.target" "network-online.target" ];
path = [ cfg.package pkgs.nettools pkgs.openssh pkgs.bzip2 config.nix.package ];
restartTriggers = [ hydraConf ];
Expand Down

0 comments on commit efadb6a

Please sign in to comment.