You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a Props.WithDeploy(...) method to set deployment with code, and we can do .WithDeploy(Deploy.Local) to configure local deployment.
We have serialize-creatorsoption that allows to make sure all props are serializable. And, as noted in this option docs, we can ignore props that are not going to be deployed remotely, via deploy.scope = LocalScope setting.
So, there are use cases, when we need to be able to explicitly set deployment as local for some actor's props, but there is no way to do that via configuration - Deploy object configuration parsing does not support this, it's scope is always set to Deploy.NoScopeGiven:
We should add support for deploy.scope there (with LocalScope and NoScopeGiven values to specify). or something like that. And update serialize-creators option comment to point to the place where/how exactly this local scope can be configured.
The text was updated successfully, but these errors were encountered:
Copying what I wrote in Gitter chat about this issue:
is what you need a work-around for being able to mark an actor as "don't serialize my props when serialize-all-creators is on?"
or is there a bigger structural bug with Akka.NET's serialize-all-creators option?
if it's the first issue, believe there is a marker interface we can use that will tell Akka.NET to skip this actor
if it's the second issue, we should definitely add it to the current sprint
could you help me understand that @IgorFedchenko ?
I'll leave it open in case it's more common than previously assumed - but giving it the "won't fix" label for now.
IgorFedchenko
changed the title
There is not way to configure local deployment via HOCON
There is no way to configure local deployment via HOCON
Oct 29, 2020
There is a
Props.WithDeploy(...)
method to set deployment with code, and we can do.WithDeploy(Deploy.Local)
to configure local deployment.We have
serialize-creators
option that allows to make sure all props are serializable. And, as noted in this option docs, we can ignore props that are not going to be deployed remotely, viadeploy.scope = LocalScope
setting.So, there are use cases, when we need to be able to explicitly set deployment as local for some actor's props, but there is no way to do that via configuration -
Deploy
object configuration parsing does not support this, it's scope is always set toDeploy.NoScopeGiven
:akka.net/src/core/Akka/Actor/Deployer.cs
Line 125 in 3705c8c
We should add support for
deploy.scope
there (withLocalScope
andNoScopeGiven
values to specify). or something like that. And updateserialize-creators
option comment to point to the place where/how exactly this local scope can be configured.The text was updated successfully, but these errors were encountered: