commit: 1d3a92be1101b04d1b69b8b3fd030d5d06f4dbea
parent 52e9bec15655dd3ba75c133b85266a1ea65a8eef
Author: Mark Felder <feld@feld.me>
Date: Fri, 28 Jun 2024 12:06:43 -0400
Remove :workers config from ConfigDB
Diffstat:
2 files changed, 7 insertions(+), 17 deletions(-)
diff --git 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
@@ -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