Merge pull request #227338 from erictapen/mastodon

This commit is contained in:
Sandro 2023-05-16 13:52:28 +02:00 committed by GitHub
commit bcd46a36a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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\".";
}
];