From 95291e60b7d8bb34e1a8df878a185558b01f5148 Mon Sep 17 00:00:00 2001 From: ttt161 Date: Sat, 31 Jan 2026 16:29:49 +0300 Subject: [PATCH 1/2] bump progressor-1.0.20 --- rebar.config | 3 ++- rebar.lock | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rebar.config b/rebar.config index 2a6b9c2..2a5c804 100644 --- a/rebar.config +++ b/rebar.config @@ -51,7 +51,8 @@ {deps, [ {genlib, {git, "https://github.com/valitydev/genlib", {tag, "v1.1.0"}}}, - {progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v1.0.19"}}}, + %{progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v1.0.19"}}}, + {progressor, {git, "https://github.com/valitydev/progressor.git", {branch, "fx/fix-migration-deadlock"}}}, % for configurator script {yamerl, {git, "https://github.com/valitydev/yamerl", {branch, master}}}, {cg_mon, {git, "https://github.com/valitydev/cg_mon", {branch, master}}} diff --git a/rebar.lock b/rebar.lock index d47553b..29095aa 100644 --- a/rebar.lock +++ b/rebar.lock @@ -67,7 +67,7 @@ 0}, {<<"progressor">>, {git,"https://github.com/valitydev/progressor.git", - {ref,"27e9fc7a4c37ca903883676aa1409034c7b3ea9e"}}, + {ref,"59866be767e23cfa160ccfcbe7c0e6f08e287028"}}, 0}, {<<"prometheus">>,{pkg,<<"prometheus">>,<<"4.11.0">>},0}, {<<"prometheus_cowboy">>,{pkg,<<"prometheus_cowboy">>,<<"0.1.9">>},0}, From 3257d45f010c1f9f69c927d00e3c6255c19b8c81 Mon Sep 17 00:00:00 2001 From: ttt161 Date: Sun, 8 Feb 2026 12:01:27 +0300 Subject: [PATCH 2/2] fix for process init status --- apps/mg_progressor/src/mg_progressor.erl | 4 ++++ rebar.config | 3 +-- rebar.lock | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/mg_progressor/src/mg_progressor.erl b/apps/mg_progressor/src/mg_progressor.erl index e5f1ccc..d0cfecf 100644 --- a/apps/mg_progressor/src/mg_progressor.erl +++ b/apps/mg_progressor/src/mg_progressor.erl @@ -61,6 +61,8 @@ handle_function('Repair', {MachineDesc, PackedArgs}, Context) -> {ok, mg_woody_packer:pack(repair_response, marshal(term, RawResponse))}; {error, <<"process is running">>} = Error -> handle_error(Error); + {error, <<"process is init">>} -> + handle_error({error, <<"process not found">>}); {error, <<"process not found">>} = Error -> handle_error(Error); {error, <<"namespace not found">>} = Error -> @@ -102,6 +104,8 @@ handle_error({error, <<"process already exists">>}) -> erlang:throw({logic, machine_already_exist}); handle_error({error, <<"process not found">>}) -> erlang:throw({logic, machine_not_found}); +handle_error({error, <<"process is init">>}) -> + erlang:throw({logic, machine_not_found}); handle_error({error, <<"namespace not found">>}) -> erlang:throw({logic, namespace_not_found}); handle_error({error, <<"process is running">>}) -> diff --git a/rebar.config b/rebar.config index 2a5c804..d96e7a4 100644 --- a/rebar.config +++ b/rebar.config @@ -51,8 +51,7 @@ {deps, [ {genlib, {git, "https://github.com/valitydev/genlib", {tag, "v1.1.0"}}}, - %{progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v1.0.19"}}}, - {progressor, {git, "https://github.com/valitydev/progressor.git", {branch, "fx/fix-migration-deadlock"}}}, + {progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v1.0.20"}}}, % for configurator script {yamerl, {git, "https://github.com/valitydev/yamerl", {branch, master}}}, {cg_mon, {git, "https://github.com/valitydev/cg_mon", {branch, master}}} diff --git a/rebar.lock b/rebar.lock index 29095aa..484ed88 100644 --- a/rebar.lock +++ b/rebar.lock @@ -67,7 +67,7 @@ 0}, {<<"progressor">>, {git,"https://github.com/valitydev/progressor.git", - {ref,"59866be767e23cfa160ccfcbe7c0e6f08e287028"}}, + {ref,"6033631d3e1eb9593acf7841d8a635146ff482e8"}}, 0}, {<<"prometheus">>,{pkg,<<"prometheus">>,<<"4.11.0">>},0}, {<<"prometheus_cowboy">>,{pkg,<<"prometheus_cowboy">>,<<"0.1.9">>},0},