diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-08-12 16:52:34 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-09-24 10:12:05 +0300 |
commit | 4db76032c27c975a08e16584bbc703f646e9eda9 (patch) | |
tree | 9527e357644b70f1ab1d9f51fecb855f5a01d0ed | |
parent | db51f15ab85e2b1e3dfcc7ed583d703a0465504d (diff) | |
download | pleroma-4db76032c27c975a08e16584bbc703f646e9eda9.tar.gz |
don't start oban in mix tasks
-rw-r--r-- | lib/mix/pleroma.ex | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/mix/pleroma.ex b/lib/mix/pleroma.ex index 2c84f939e..7fa3d6bf6 100644 --- a/lib/mix/pleroma.ex +++ b/lib/mix/pleroma.ex @@ -40,15 +40,14 @@ defmodule Mix.Pleroma do Supervisor.child_spec({Task, &Pleroma.Config.Environment.load_and_update/0}, id: :update_env ), - Pleroma.Web.Endpoint, - {Oban, Pleroma.Config.get(Oban)} + Pleroma.Web.Endpoint ] children = - if Application.get_env(:tesla, :adapter) == Tesla.Adapter.Gun do + if adapter == Tesla.Adapter.Gun do [Pleroma.Application.GunSupervisor | children] else - [Pleroma.Applicaiton.HackneySupervisor | children] + [Pleroma.Application.HackneySupervisor | children] end cachex_children = |