From 6d2dfa9a06f2b2bc9c912d0649486be9b1090fed Mon Sep 17 00:00:00 2001 From: ttt161 Date: Sat, 31 Jan 2026 16:09:15 +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 16e0aa38..ead7f94d 100644 --- a/rebar.config +++ b/rebar.config @@ -42,7 +42,8 @@ {fault_detector_proto, {git, "https://github.com/valitydev/fault-detector-proto.git", {branch, "master"}}}, {limiter_proto, {git, "https://github.com/valitydev/limiter-proto.git", {tag, "v2.1.0"}}}, {herd, {git, "https://github.com/wgnet/herd.git", {tag, "1.3.4"}}}, - {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"}}}, {prometheus, "4.11.0"}, {prometheus_cowboy, "0.1.9"}, diff --git a/rebar.lock b/rebar.lock index f43a6ed0..51f54fca 100644 --- a/rebar.lock +++ b/rebar.lock @@ -100,7 +100,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 463a58b3bf1bb1e40d3c153c3557075eae75d0b2 Mon Sep 17 00:00:00 2001 From: ttt161 Date: Sun, 8 Feb 2026 11:53:51 +0300 Subject: [PATCH 2/2] fix for init status --- apps/hg_progressor/src/hg_progressor.erl | 4 ++++ rebar.config | 3 +-- rebar.lock | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/hg_progressor/src/hg_progressor.erl b/apps/hg_progressor/src/hg_progressor.erl index deb1c4eb..874af63f 100644 --- a/apps/hg_progressor/src/hg_progressor.erl +++ b/apps/hg_progressor/src/hg_progressor.erl @@ -52,6 +52,8 @@ call_automaton('Call', {MachineDesc, Args}) -> Ok; {error, <<"process not found">>} -> {error, notfound}; + {error, <<"process is init">>} -> + {error, notfound}; {error, <<"process is error">>} -> {error, failed}; {error, {exception, _, _} = Exception} -> @@ -93,6 +95,8 @@ call_automaton('Repair', {MachineDesc, Args}) -> Ok; {error, <<"process not found">>} -> {error, notfound}; + {error, <<"process is init">>} -> + {error, notfound}; {error, <<"process is running">>} -> {error, working}; {error, <<"process is error">>} -> diff --git a/rebar.config b/rebar.config index ead7f94d..e54b9e06 100644 --- a/rebar.config +++ b/rebar.config @@ -42,8 +42,7 @@ {fault_detector_proto, {git, "https://github.com/valitydev/fault-detector-proto.git", {branch, "master"}}}, {limiter_proto, {git, "https://github.com/valitydev/limiter-proto.git", {tag, "v2.1.0"}}}, {herd, {git, "https://github.com/wgnet/herd.git", {tag, "1.3.4"}}}, - %{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"}}}, {prometheus, "4.11.0"}, {prometheus_cowboy, "0.1.9"}, diff --git a/rebar.lock b/rebar.lock index 51f54fca..11e04791 100644 --- a/rebar.lock +++ b/rebar.lock @@ -100,7 +100,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},