Consolidated passivation check on settings used in region and shard (#27738)
This commit is contained in:
parent
a84aa0095c
commit
ef09dca732
5 changed files with 63 additions and 11 deletions
|
|
@ -198,7 +198,7 @@ private[akka] class Shard(
|
|||
private var handOffStopper: Option[ActorRef] = None
|
||||
|
||||
import context.dispatcher
|
||||
val passivateIdleTask = if (settings.passivateIdleEntityAfter > Duration.Zero && !settings.rememberEntities) {
|
||||
val passivateIdleTask = if (settings.shouldPassivateIdleEntities) {
|
||||
val idleInterval = settings.passivateIdleEntityAfter / 2
|
||||
Some(context.system.scheduler.scheduleWithFixedDelay(idleInterval, idleInterval, self, PassivateIdleTick))
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue