Skip to content

Commit 0e3bb42

Browse files
ttt161ttt161
andauthored
bump progressor-1.0.20 (#33)
* bump progressor-1.0.20 * fix for process init status --------- Co-authored-by: ttt161 <losto@nix>
1 parent 196c5ca commit 0e3bb42

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/mg_progressor/src/mg_progressor.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ handle_function('Repair', {MachineDesc, PackedArgs}, Context) ->
6161
{ok, mg_woody_packer:pack(repair_response, marshal(term, RawResponse))};
6262
{error, <<"process is running">>} = Error ->
6363
handle_error(Error);
64+
{error, <<"process is init">>} ->
65+
handle_error({error, <<"process not found">>});
6466
{error, <<"process not found">>} = Error ->
6567
handle_error(Error);
6668
{error, <<"namespace not found">>} = Error ->
@@ -102,6 +104,8 @@ handle_error({error, <<"process already exists">>}) ->
102104
erlang:throw({logic, machine_already_exist});
103105
handle_error({error, <<"process not found">>}) ->
104106
erlang:throw({logic, machine_not_found});
107+
handle_error({error, <<"process is init">>}) ->
108+
erlang:throw({logic, machine_not_found});
105109
handle_error({error, <<"namespace not found">>}) ->
106110
erlang:throw({logic, namespace_not_found});
107111
handle_error({error, <<"process is running">>}) ->

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
{deps, [
5353
{genlib, {git, "https://github.com/valitydev/genlib", {tag, "v1.1.0"}}},
54-
{progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v1.0.19"}}},
54+
{progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v1.0.20"}}},
5555
% for configurator script
5656
{yamerl, {git, "https://github.com/valitydev/yamerl", {branch, master}}},
5757
{cg_mon, {git, "https://github.com/valitydev/cg_mon", {branch, master}}}

rebar.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
0},
6868
{<<"progressor">>,
6969
{git,"https://github.com/valitydev/progressor.git",
70-
{ref,"27e9fc7a4c37ca903883676aa1409034c7b3ea9e"}},
70+
{ref,"6033631d3e1eb9593acf7841d8a635146ff482e8"}},
7171
0},
7272
{<<"prometheus">>,{pkg,<<"prometheus">>,<<"4.11.0">>},0},
7373
{<<"prometheus_cowboy">>,{pkg,<<"prometheus_cowboy">>,<<"0.1.9">>},0},

0 commit comments

Comments
 (0)