diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2021-02-18 20:40:10 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2021-02-18 20:40:10 +0300 |
commit | b981edad8a7d8f27b231bc6164fc0546efbdb646 (patch) | |
tree | dc603dbb2f3eb45ab2a99e826aabb4f6dbfd7b05 /config | |
parent | 854ea1aefb5ff4e03e9e9af6e8dd50f66c61c913 (diff) | |
download | pleroma-b981edad8a7d8f27b231bc6164fc0546efbdb646.tar.gz |
[#3213] HashtagsTableMigrator: fault rate allowance to enable the feature (defaults to 1%), counting of affected objects, misc. tweaks.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 2 | ||||
-rw-r--r-- | config/description.exs | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs index 0fbca06f3..c371c397c 100644 --- a/config/config.exs +++ b/config/config.exs @@ -657,6 +657,8 @@ config :pleroma, :oauth2, config :pleroma, :database, rum_enabled: false +config :pleroma, :populate_hashtags_table, fault_rate_allowance: 0.01 + config :pleroma, :env, Mix.env() config :http_signatures, diff --git a/config/description.exs b/config/description.exs index 29fc5fbd4..6ffc71278 100644 --- a/config/description.exs +++ b/config/description.exs @@ -480,6 +480,13 @@ config :pleroma, :config_description, [ description: "`populate_hashtags_table` background migration settings", children: [ %{ + key: :fault_rate_allowance, + type: :float, + description: + "Max rate of failed objects to actually processed objects in order to enable the feature (any value from 0.0 which tolerates no errors to 1.0 which will enable the feature even if hashtags transfer failed for all records).", + suggestions: [0.01] + }, + %{ key: :sleep_interval_ms, type: :integer, description: |