Skip to content

Commit

Permalink
Front: stop the jvm after coordinated shutdown (#2028)
Browse files Browse the repository at this point in the history
The app must stop when connection to the backend fails. It will be gracefully restarted on Beanstalk instead of just hanging.

Fixes a regression introduced by #1912.
  • Loading branch information
pm47 authored Oct 25, 2021
1 parent e54aaa8 commit c5fa39f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions eclair-front/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ akka {
roles = [frontend]
seed-nodes = ["akka://eclair-node@"${eclair.front.backend.ip}":25520"]
}
coordinated-shutdown.exit-jvm = on
//It is recommended to load the extension when the actor system is started by defining it in akka.extensions
//configuration property. Otherwise it will be activated when first used and then it takes a while for it to be populated.
extensions = ["akka.cluster.pubsub.DistributedPubSub"]
Expand Down
1 change: 1 addition & 0 deletions eclair-front/src/test/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ kamon.environment.host = "auto"
akka {
actor.provider = local
cluster.seed-nodes = []
coordinated-shutdown.exit-jvm = off
extensions = []
}

0 comments on commit c5fa39f

Please sign in to comment.