mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #227338 from erictapen/mastodon
This commit is contained in:
commit
bcd46a36a7
@ -588,11 +588,12 @@ in {
|
||||
'';
|
||||
}
|
||||
{
|
||||
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\".";
|
||||
assertion = 1 ==
|
||||
(lib.count (x: x)
|
||||
(lib.mapAttrsToList
|
||||
(_: v: builtins.elem "scheduler" v.jobClasses || v.jobClasses == [ ])
|
||||
cfg.sidekiqProcesses));
|
||||
message = "There must be exactly one Sidekiq queue in services.mastodon.sidekiqProcesses with jobClass \"scheduler\".";
|
||||
}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user