Merge pull request #227338 from erictapen/mastodon
This commit is contained in:
commit
bcd46a36a7
1 changed files with 6 additions and 5 deletions
|
@ -588,11 +588,12 @@ in {
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
assertion = 1 == builtins.length
|
assertion = 1 ==
|
||||||
|
(lib.count (x: x)
|
||||||
(lib.mapAttrsToList
|
(lib.mapAttrsToList
|
||||||
(_: v: builtins.elem "scheduler" v.jobClasses || v.jobClasses == [ ])
|
(_: v: builtins.elem "scheduler" v.jobClasses || v.jobClasses == [ ])
|
||||||
cfg.sidekiqProcesses);
|
cfg.sidekiqProcesses));
|
||||||
message = "There must be one and only one Sidekiq queue in services.mastodon.sidekiqProcesses with jobClass \"scheduler\".";
|
message = "There must be exactly one Sidekiq queue in services.mastodon.sidekiqProcesses with jobClass \"scheduler\".";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue