logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 65f4e37ee1f47ff2f160eb56facef4c783a6828c
parent 88fe0a262e21ba1284e72eddb1d41363dc029aa7
Author: Alexander Strizhakov <alex.strizhakov@gmail.com>
Date:   Sun, 13 Sep 2020 10:04:50 +0300

remove old workers in oban migrations

Diffstat:

Mpriv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs2++
Mpriv/repo/migrations/20200907092050_move_tokens_expiration_into_oban.exs2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/priv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs b/priv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs @@ -4,6 +4,8 @@ defmodule Pleroma.Repo.Migrations.MoveActivityExpirationsToOban do import Ecto.Query, only: [from: 2] def change do + Pleroma.Config.Oban.warn() + Supervisor.start_link([{Oban, Pleroma.Config.get(Oban)}], strategy: :one_for_one, name: Pleroma.Supervisor diff --git a/priv/repo/migrations/20200907092050_move_tokens_expiration_into_oban.exs b/priv/repo/migrations/20200907092050_move_tokens_expiration_into_oban.exs @@ -4,6 +4,8 @@ defmodule Pleroma.Repo.Migrations.MoveTokensExpirationIntoOban do import Ecto.Query, only: [from: 2] def change do + Pleroma.Config.Oban.warn() + Supervisor.start_link([{Oban, Pleroma.Config.get(Oban)}], strategy: :one_for_one, name: Pleroma.Supervisor