removing Stats worker from Oban cron jobs

This commit is contained in:
Alexander Strizhakov 2020-09-06 12:13:26 +03:00
commit ee67c98e55
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
10 changed files with 127 additions and 50 deletions

View file

@ -1,17 +0,0 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Workers.Cron.StatsWorker do
@moduledoc """
The worker to update peers statistics.
"""
use Oban.Worker, queue: "background"
@impl Oban.Worker
def perform(_job) do
Pleroma.Stats.do_collect()
:ok
end
end