This commit is contained in:
dullbananas 2024-05-26 18:54:44 -07:00 committed by GitHub
parent d82bfccc5b
commit c694da9ca4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,10 +207,10 @@ pub async fn start_lemmy_server(args: CmdArgs) -> LemmyResult<()> {
rate_limit_cell.clone(),
);
let scheduled_tasks = (!args.disable_scheduled_tasks).then(|| {
if !args.disable_scheduled_tasks {
// Schedules various cleanup tasks for the DB
tokio::task::spawn(scheduled_tasks::setup(context.clone()))
});
let _scheduled_tasks = tokio::task::spawn(scheduled_tasks::setup(context.clone()));
}
if let Some(prometheus) = SETTINGS.prometheus.clone() {
serve_prometheus(prometheus, context.clone())?;