Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appup 1 4 3 #1356

Merged
merged 8 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/archethic/beacon_chain/subset/summary_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ defmodule Archethic.BeaconChain.Subset.SummaryCache do
{:ok, %{}}
end

def code_change("1.4.2", state, _extra) do
PubSub.register_to_self_repair()
{:ok, state}
end

def code_change(_version, state, _extra), do: {:ok, state}

def handle_info(:self_repair_sync, state) do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Archethic.MixProject do
def project do
[
app: :archethic,
version: "1.4.2",
version: "1.4.3",
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
Expand Down
15 changes: 15 additions & 0 deletions priv/migration_tasks/prod/1.4.3@jobcacheregistry_start.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
defmodule Migration_1_4_3 do
@moduledoc """
Start the JobCacheRegistry which is a child of Application
"""

def run() do
{:ok, _} =
Supervisor.start_child(
Archethic.Supervisor,
{Registry, keys: :unique, name: Archethic.Utils.JobCacheRegistry}
)

:ok
end
end
Loading
Loading