logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 2937e3095ab9208b2aea1f42792ab99b1b4252d7
parent: 88fe0a262e21ba1284e72eddb1d41363dc029aa7
Author: rinpatch <rinpatch@sdf.org>
Date:   Mon, 14 Sep 2020 07:54:06 +0000

Merge branch 'fix/2139-oban-migration' into 'develop'

Remove old workers in oban migrations

Closes #2139

See merge request pleroma/pleroma!2994

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