Commit ec1ec32f authored by kaniini's avatar kaniini
Browse files

Merge branch 'optional-retry-queue' into 'develop'

Make retry queue optional.

See merge request !498
parents 114b95ce 925b0505
Pipeline #4920 passed with stages
in 2 minutes and 47 seconds
......@@ -17,7 +17,15 @@ def init(args) do
end
def start_link() do
GenServer.start_link(__MODULE__, %{delivered: 0, dropped: 0}, name: __MODULE__)
enabled = Pleroma.Config.get([:retry_queue, :enabled], false)
if enabled do
Logger.info("Starting retry queue")
GenServer.start_link(__MODULE__, %{delivered: 0, dropped: 0}, name: __MODULE__)
else
Logger.info("Retry queue disabled")
:ignore
end
end
def enqueue(data, transport, retries \\ 0) do
......
Supports Markdown
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