Skip to content

Commit

Permalink
Allow healthy cluster to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Jul 2, 2024
1 parent 5426213 commit 320fe1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/polar/machines/cluster/transitions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ defmodule Polar.Machines.Cluster.Transitions do
fn changes -> transit(changes, Cluster.Triggers) end
)

Cluster
|> transition(
[from: "healthy", to: "connecting", via: "connect"],
fn changes -> transit(changes, Cluster.Triggers) end
)

Cluster
|> transition(
[from: "connecting", to: "healthy", via: "healthy"],
Expand Down

0 comments on commit 320fe1f

Please sign in to comment.