Remove :workers config from ConfigDB

This commit is contained in:
Mark Felder 2024-06-28 12:06:43 -04:00
parent 52e9bec156
commit 1d3a92be11
2 changed files with 7 additions and 17 deletions

View file

@ -2013,23 +2013,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,

View file

@ -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