summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHélène <pleroma-dev@helene.moe>2022-08-15 01:15:23 +0200
committerHélène <pleroma-dev@helene.moe>2022-08-15 01:47:09 +0200
commit88c1c76d3eca3412d1e02008f1b8d96fe8fe0b96 (patch)
treeda0e4065e3ed511f3c7ba4b0d40307b9da9f748c /config
parentbb02ee99f58e378e33162211f41fe5979d5da8ae (diff)
Migrations: delete contexts with BaseMigrator
Due to the lengthiness of this task, the migration has been adapted into a BaseMigrator migration, running in the background instead.
Diffstat (limited to 'config')
-rw-r--r--config/config.exs2
-rw-r--r--config/description.exs21
2 files changed, 23 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs
index 0fc959807..eadc255cc 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -673,6 +673,8 @@ config :pleroma, :features, improved_hashtag_timeline: :auto
config :pleroma, :populate_hashtags_table, fault_rate_allowance: 0.01
+config :pleroma, :delete_context_objects, fault_rate_allowance: 0.01
+
config :pleroma, :env, Mix.env()
config :http_signatures,
diff --git a/config/description.exs b/config/description.exs
index c6c6b1b5d..c28447b37 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -497,6 +497,27 @@ config :pleroma, :config_description, [
},
%{
group: :pleroma,
+ key: :delete_context_objects,
+ type: :group,
+ description: "`delete_context_objects` background migration settings",
+ children: [
+ %{
+ key: :fault_rate_allowance,
+ type: :float,
+ description:
+ "Max accepted rate of objects that failed in the migration. Any value from 0.0 which tolerates no errors to 1.0 which will enable the feature even if context object deletion failed for all records.",
+ suggestions: [0.01]
+ },
+ %{
+ key: :sleep_interval_ms,
+ type: :integer,
+ description:
+ "Sleep interval between each chunk of processed records in order to decrease the load on the system (defaults to 0 and should be keep default on most instances)."
+ }
+ ]
+ },
+ %{
+ group: :pleroma,
key: :instance,
type: :group,
description: "Instance-related settings",