Commit cc837f9d authored by Maksim's avatar Maksim

fixed config/descpiption.exs

parent 71e23326
Pipeline #27647 passed with stages
in 9 minutes and 38 seconds
......@@ -1996,18 +1996,11 @@
""",
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},
......
......@@ -80,7 +80,7 @@ def start(_type, _args) do
[
Pleroma.Stats,
Pleroma.JobQueueMonitor,
{Oban, oban_config()}
{Oban, Config.get(Oban)}
] ++
task_children(@env) ++
streamer_child(@env) ++
......@@ -138,18 +138,6 @@ defp setup_instrumenters 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()),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment