Skip to content

PurgeTimeout as a optional actor option #128

Open

Description

@eliasdarruda

We need to add a option that purges all data related with the actor, it will clean its state and delete the entry from the Statestore after a configured time.

It can be called PurgeTimeout, DestroyTimeout or something like that, open to suggestions on the naming pattern.

Should it de-register from all hosts too? @sleipnir WDYT?

Activity

  1. added this to the v1.0.0 milestone on Jan 20, 2023
  2. sleipnir commented on Jan 20, 2023

    @sleipnir
    Member

    We need to add a option that purges all data related with the actor, it will clean its state and delete the entry from the Statestore after a configured time.

    It can be called PurgeTimeout, DestroyTimeout or something like that, open to suggestions on the naming pattern.

    Should it de-register from all hosts too? @sleipnir WDYT?

    This is an old wish of mine.
    I think we have to keep a few things in mind when implementing this:

    1. We must stipulate a minimum default period for an actor without updating for more than N days to remain in the Statesstore. I would suggest 90 days.
    2. User can allow data to never be deleted (maybe this is the best option for Default timeout).
    3. We must consider the update date of the state, that is, the updated_at column
    4. I suggest that the configuration has a name that addresses the question of the Actor's non-usefulness. Something like
      purgeUnusedActors or something like that.
    5. The process responsible for validating and cleaning this up must also be global. Similar to what we do with the Schedule invocation
  3. sleipnir commented on Jan 20, 2023

    @sleipnir
    Member
  4. added this to Spawn v1.5.0 and removed this from Spawn v1.0.0on Dec 3, 2023
  5. sleipnir commented on Jul 31, 2024

    @sleipnir
    Member

    @eliasdarruda we can add an option called ttl to the ActorSettings

  6. added this to Spawn v1.6.0 and removed this from Spawn v1.5.0on Sep 19, 2024
  7. moved this to Backlog in Spawn v1.6.0on Sep 19, 2024
  8. modified the milestones: v1.0.0, 1.6.0 on Sep 19, 2024
  9. self-assigned this
    on Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions