=cls increase the delay in the graceful shutdown example
This commit is contained in:
parent
290f402b79
commit
5ebdd79bee
2 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ object ClusterShardingGracefulShutdownSpec {
|
|||
case "member-removed" ⇒
|
||||
// Let singletons hand over gracefully before stopping the system
|
||||
import context.dispatcher
|
||||
system.scheduler.scheduleOnce(3.seconds, self, "stop-system")
|
||||
system.scheduler.scheduleOnce(10.seconds, self, "stop-system")
|
||||
|
||||
case "stop-system" ⇒
|
||||
system.terminate()
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ public class ClusterShardingTest {
|
|||
}).
|
||||
match(String.class, s -> s.equals("member-removed"), s -> {
|
||||
// Let singletons hand over gracefully before stopping the system
|
||||
context().system().scheduler().scheduleOnce(Duration.create(3, SECONDS),
|
||||
context().system().scheduler().scheduleOnce(Duration.create(10, SECONDS),
|
||||
self(), "stop-system", context().dispatcher(), self());
|
||||
}).
|
||||
match(String.class, s -> s.equals("stop-system"), s -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue