Unverified Commit aff28842 authored by Kerstin Humm's avatar Kerstin Humm
Browse files

nixos/mastodon: fixup sidekiq jobClasses assertion

parent 555daa9d
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -588,11 +588,12 @@ in {
        '';
      }
      {
        assertion = 1 == builtins.length
        assertion = 1 ==
          (lib.count (x: x)
            (lib.mapAttrsToList
              (_: v: builtins.elem "scheduler" v.jobClasses || v.jobClasses == [ ])
            cfg.sidekiqProcesses);
        message = "There must be one and only one Sidekiq queue in services.mastodon.sidekiqProcesses with jobClass \"scheduler\".";
              cfg.sidekiqProcesses));
        message = "There must be exactly one Sidekiq queue in services.mastodon.sidekiqProcesses with jobClass \"scheduler\".";
      }
    ];