fixed config/descpiption.exs
This commit is contained in:
parent
71e233268a
commit
cc837f9d15
2 changed files with 2 additions and 21 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue