X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20200907092050_move_tokens_expiration_into_oban.exs;h=725c5ab0b1cd6d2a7baad2369bff07ad2c4c8261;hb=0e48c80d7fd65cedaccd2ecbfbd49bb0f56d6f4d;hp=832bd02a75fe14d9d842eb1fffdbce5d2a3c1952;hpb=e11fca88d424b394359f50646e4b4ec9b3ae1a8b;p=akkoma diff --git a/priv/repo/migrations/20200907092050_move_tokens_expiration_into_oban.exs b/priv/repo/migrations/20200907092050_move_tokens_expiration_into_oban.exs index 832bd02a7..725c5ab0b 100644 --- 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,10 @@ defmodule Pleroma.Repo.Migrations.MoveTokensExpirationIntoOban do import Ecto.Query, only: [from: 2] def change do + Pleroma.Config.Oban.warn() + + Application.ensure_all_started(:oban) + Supervisor.start_link([{Oban, Pleroma.Config.get(Oban)}], strategy: :one_for_one, name: Pleroma.Supervisor