Merge pull request #225005 from erictapen/mastodon-sidekiq

This commit is contained in:
Sandro 2023-04-12 21:31:50 +02:00 committed by GitHub
commit 6152b09a6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -587,6 +587,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 ];