aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-08-24 09:27:32 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-08-24 09:27:32 +0300
commit71700ea6d4104ecd2cc0afb0ac103e722b30fbb5 (patch)
tree578abb3742f65a990e48b6e5718596f36ca1243f
parent581123f8bb703023cb652267a1fc34292f862852 (diff)
downloadpleroma-71700ea6d4104ecd2cc0afb0ac103e722b30fbb5.tar.gz
[#1149] Updated docs & tests.
-rw-r--r--docs/config.md6
-rw-r--r--test/web/admin_api/admin_api_controller_test.exs4
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/config.md b/docs/config.md
index 81923c640..5b2c3a022 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -426,6 +426,12 @@ config :pleroma, Oban,
This config contains two queues: `federator_incoming` and `federator_outgoing`. Both have the number of max concurrent jobs set to `50`.
+## :workers
+
+Includes custom worker options not interpretable directly by `Oban`.
+
+* `retries` — keyword lists where keys are `Oban` queues (see above) and values are numbers of max attempts for failed jobs.
+
## Pleroma.Web.Metadata
* `providers`: a list of metadata providers to enable. Providers available:
* Pleroma.Web.Metadata.Providers.OpenGraph
diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs
index 844cd0732..a867ac998 100644
--- a/test/web/admin_api/admin_api_controller_test.exs
+++ b/test/web/admin_api/admin_api_controller_test.exs
@@ -1861,7 +1861,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
post(conn, "/api/pleroma/admin/config", %{
configs: [
%{
- "group" => "pleroma_job_queue",
+ "group" => "oban",
"key" => ":queues",
"value" => [
%{"tuple" => [":federator_incoming", 50]},
@@ -1879,7 +1879,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
assert json_response(conn, 200) == %{
"configs" => [
%{
- "group" => "pleroma_job_queue",
+ "group" => "oban",
"key" => ":queues",
"value" => [
%{"tuple" => [":federator_incoming", 50]},