diff options
author | rinpatch <rinpatch@sdf.org> | 2020-09-14 07:54:06 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-14 07:54:06 +0000 |
commit | 2937e3095ab9208b2aea1f42792ab99b1b4252d7 (patch) | |
tree | 15e3f086b4786726ff0e08756ff462c0f91798cf | |
parent | 88fe0a262e21ba1284e72eddb1d41363dc029aa7 (diff) | |
parent | 65f4e37ee1f47ff2f160eb56facef4c783a6828c (diff) | |
download | pleroma-2937e3095ab9208b2aea1f42792ab99b1b4252d7.tar.gz |
Merge branch 'fix/2139-oban-migration' into 'develop'
Remove old workers in oban migrations
Closes #2139
See merge request pleroma/pleroma!2994
-rw-r--r-- | priv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs | 2 | ||||
-rw-r--r-- | priv/repo/migrations/20200907092050_move_tokens_expiration_into_oban.exs | 2 |
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 index cdc00d20b..a703af83f 100644 --- 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 index 832bd02a7..9e49ddacb 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,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 |