Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Separate the dispatch internal state from the immutable Dispatch object #57

Open

Description

@llucax

Since the Dispatch's deleted bool and running_state_change_synced are only attached as mutable properties for internal state tracking, it might make more sense to separate the state from the immutable dispatch, and have a DispatchState mutable class and a separate dict to map dispatch ID to its state, for example.

You can pass the state object to the Dispatch constructor and store it as a private property and expose read-only properties to access the state, if it needs to be accessed externally, and store the dict and mutate it from this actor only.

Originally posted by @llucax in #54 (comment)

Activity

  1. added
    type:tech-debt
    part:actor
    part:dispatcher
    on Sep 25, 2024
  2. Marenz commented on Dec 19, 2024

    @Marenz
    Contributor

    in #82 running_state_change_synced was removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:actorpart:dispatchertype:tech-debt

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions