aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/description.exs9
-rw-r--r--lib/pleroma/application.ex14
2 files changed, 2 insertions, 21 deletions
diff --git a/config/description.exs b/config/description.exs
index f9523936a..ff777391e 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -1996,19 +1996,12 @@ config :pleroma, :config_description, [
""",
children: [
%{
- key: :verbose,
+ key: :log,
type: {:dropdown, :atom},
description: "Logs verbose mode",
suggestions: [false, :error, :warn, :info, :debug]
},
%{
- key: :prune,
- type: [:atom, :tuple],
- description:
- "Non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning)",
- suggestions: [:disabled, {:maxlen, 1500}, {:maxage, 60 * 60}]
- },
- %{
key: :queues,
type: {:keyword, :integer},
description:
diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex
index fb2731f97..9615af122 100644
--- a/lib/pleroma/application.ex
+++ b/lib/pleroma/application.ex
@@ -80,7 +80,7 @@ defmodule Pleroma.Application do
[
Pleroma.Stats,
Pleroma.JobQueueMonitor,
- {Oban, oban_config()}
+ {Oban, Config.get(Oban)}
] ++
task_children(@env) ++
streamer_child(@env) ++
@@ -138,18 +138,6 @@ defmodule Pleroma.Application do
Pleroma.Web.Endpoint.Instrumenter.setup()
end
- defp oban_config do
- config = Config.get(Oban)
-
- if Code.ensure_loaded?(IEx) and IEx.started?() do
- config
- |> Keyword.put(:crontab, false)
- |> Keyword.put(:queues, false)
- else
- config
- end
- end
-
defp cachex_children do
[
build_cachex("used_captcha", ttl_interval: seconds_valid_interval()),