mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/mastodon: add assertion for only allowing one sidekiq scheduler queue
This commit is contained in:
parent
9c8ff8b426
commit
431ccf26e4
1 changed files with 7 additions and 0 deletions
|
@ -513,6 +513,13 @@ in {
|
|||
<option>services.mastodon.smtp.authenticate</option> is enabled.
|
||||
'';
|
||||
}
|
||||
{
|
||||
assertion = 1 == builtins.length
|
||||
(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\".";
|
||||
}
|
||||
];
|
||||
|
||||
environment.systemPackages = [ mastodonTootctl ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue