summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-06-28 12:06:43 -0400
committerMark Felder <feld@feld.me>2024-07-30 11:34:53 -0400
commit1d3a92be1101b04d1b69b8b3fd030d5d06f4dbea (patch)
treef0802874f70563cc1165e1488945e90e49c90083
parent52e9bec15655dd3ba75c133b85266a1ea65a8eef (diff)
downloadpleroma-1d3a92be1101b04d1b69b8b3fd030d5d06f4dbea.tar.gz
pleroma-1d3a92be1101b04d1b69b8b3fd030d5d06f4dbea.zip
Remove :workers config from ConfigDB
-rw-r--r--config/description.exs17
-rw-r--r--priv/repo/migrations/20240628160536_deprecate_config_db_workers.exs7
2 files changed, 7 insertions, 17 deletions
diff --git a/config/description.exs b/config/description.exs
index 2809e9130..15faecb38 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -2015,23 +2015,6 @@ config :pleroma, :config_description, [
},
%{
group: :pleroma,
- key: :workers,
- type: :group,
- description: "Includes custom worker options not interpretable directly by `Oban`",
- children: [
- %{
- key: :retries,
- type: {:keyword, :integer},
- description: "Max retry attempts for failed jobs, per `Oban` queue",
- suggestions: [
- federator_incoming: 5,
- federator_outgoing: 5
- ]
- }
- ]
- },
- %{
- group: :pleroma,
key: Pleroma.Web.Metadata,
type: :group,
description: "Metadata-related settings",
diff --git a/priv/repo/migrations/20240628160536_deprecate_config_db_workers.exs b/priv/repo/migrations/20240628160536_deprecate_config_db_workers.exs
new file mode 100644
index 000000000..549dd22e9
--- /dev/null
+++ b/priv/repo/migrations/20240628160536_deprecate_config_db_workers.exs
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.DeprecateConfigDBWorkers do
+ use Ecto.Migration
+
+ def change do
+ execute("DELETE FROM config WHERE config.group = ':workers'")
+ end
+end