Browse Source

start oban app in migrations and mix tasks

groups
Alexander Strizhakov 3 years ago
parent
commit
0e48c80d7f
No known key found for this signature in database GPG Key ID: 22896A53AEF1381
3 changed files with 6 additions and 1 deletions
  1. +2
    -1
      lib/mix/pleroma.ex
  2. +2
    -0
      priv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs
  3. +2
    -0
      priv/repo/migrations/20200907092050_move_tokens_expiration_into_oban.exs

+ 2
- 1
lib/mix/pleroma.ex View File

@@ -13,7 +13,8 @@ defmodule Mix.Pleroma do
:flake_id,
:swoosh,
:timex,
:fast_html
:fast_html,
:oban
]
@cachex_children ["object", "user", "scrubber", "web_resp"]
@doc "Common functions to be reused in mix tasks"


+ 2
- 0
priv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs View File

@@ -6,6 +6,8 @@ defmodule Pleroma.Repo.Migrations.MoveActivityExpirationsToOban do
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


+ 2
- 0
priv/repo/migrations/20200907092050_move_tokens_expiration_into_oban.exs View File

@@ -6,6 +6,8 @@ defmodule Pleroma.Repo.Migrations.MoveTokensExpirationIntoOban do
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


Loading…
Cancel
Save