remove old workers in oban migrations
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Sun, 13 Sep 2020 07:04:50 +0000 (10:04 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Sun, 13 Sep 2020 07:04:50 +0000 (10:04 +0300)
priv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs
priv/repo/migrations/20200907092050_move_tokens_expiration_into_oban.exs

index cdc00d20baf97a5ea0bec858d08a73f770caea54..a703af83fd270064001df1554bb45153dc35d96b 100644 (file)
@@ -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
index 832bd02a75fe14d9d842eb1fffdbce5d2a3c1952..9e49ddacbb7fdc6802dc873229cdff1499f8aeeb 100644 (file)
@@ -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