Skip to content

Commit

Permalink
Deregistration process manager retry the rollup errors from aggregates (
Browse files Browse the repository at this point in the history
  • Loading branch information
CDimonaco authored and rtorrero committed Jun 16, 2023
1 parent 9561988 commit 38f7243
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,17 @@ defmodule Trento.DeregistrationProcessManager do
}
end

# Retry the rollup errors, stop the process on other errors

def error({:error, :host_rolling_up}, _command_or_event, %{context: context}),
do: {:retry, context}

def error({:error, :cluster_rolling_up}, _command_or_event, %{context: context}),
do: {:retry, context}

def error({:error, :sap_system_rolling_up}, _command_or_event, %{context: context}),
do: {:retry, context}

defp maybe_deregister_cluster_host(nil, _, _), do: []

defp maybe_deregister_cluster_host(cluster_id, host_id, requested_at) do
Expand Down

0 comments on commit 38f7243

Please sign in to comment.