1
0
Fork 0
forked from mirrors/akkoma

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

Remove old workers in oban migrations

Closes #2139

See merge request pleroma/pleroma!2994
This commit is contained in:
rinpatch 2020-09-14 07:54:06 +00:00
commit 2937e3095a
2 changed files with 4 additions and 0 deletions

View 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

View 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