1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Repo.Migrations.RemoveBackgroundJobs do
8 import Ecto.Query, only: [from: 2]
11 from(j in "oban_jobs",
13 j.queue == ^"background" and
14 fragment("?->>'op'", j.args) in ^[
15 "fetch_data_for_activity",
16 "media_proxy_prefetch",
19 j.worker == ^"Pleroma.Workers.BackgroundWorker",
22 |> Pleroma.Repo.delete_all()