Skip to content

EventKind

Base classes

Name Children Inherits
StrEnum
enum
Enum where members are also (and must be) strings

⋔ Inheritance diagram

graph TD
  4157885763["events.EventKind"]
  375580963["enum.StrEnum"]
  4275460044["builtins.str"]
  2751680898["builtins.object"]
  4125183869["enum.ReprEnum"]
  3466579666["enum.Enum"]
  375580963 --> 4157885763
  4275460044 --> 375580963
  2751680898 --> 4275460044
  4125183869 --> 375580963
  3466579666 --> 4125183869
  2751680898 --> 3466579666

🛈 DocStrings

Bases: StrEnum

Source code in src/datacook/engine/events.py
class EventKind(StrEnum):
    ADDED = "added"
    """A node was added (`node_ids` = the new node)."""
    REMOVED = "removed"
    """Nodes were removed (`node_ids` = the node and all its descendants)."""
    CHANGED = "changed"
    """A node's params / name / comment changed (`node_ids` = the node)."""
    MOVED = "moved"
    """Nodes got new parents (`node_ids` = the re-parented nodes); followed by INVALIDATED."""
    INVALIDATED = "invalidated"
    """Cached results are outdated (`node_ids` = the edited node + all descendants)."""
    MATERIALIZED = "materialized"
    """A node's frame was computed and cached for `generation`."""
    EVICTED = "evicted"
    """Frames were dropped from the cache (memory budget); summaries stay available."""
    ERROR = "error"
    """Computing a node failed (`error` holds the exception)."""

ADDED class-attribute instance-attribute

ADDED = 'added'

A node was added (node_ids = the new node).

CHANGED class-attribute instance-attribute

CHANGED = 'changed'

A node's params / name / comment changed (node_ids = the node).

ERROR class-attribute instance-attribute

ERROR = 'error'

Computing a node failed (error holds the exception).

EVICTED class-attribute instance-attribute

EVICTED = 'evicted'

Frames were dropped from the cache (memory budget); summaries stay available.

INVALIDATED class-attribute instance-attribute

INVALIDATED = 'invalidated'

Cached results are outdated (node_ids = the edited node + all descendants).

MATERIALIZED class-attribute instance-attribute

MATERIALIZED = 'materialized'

A node's frame was computed and cached for generation.

MOVED class-attribute instance-attribute

MOVED = 'moved'

Nodes got new parents (node_ids = the re-parented nodes); followed by INVALIDATED.

REMOVED class-attribute instance-attribute

REMOVED = 'removed'

Nodes were removed (node_ids = the node and all its descendants).

:fa-brands-github: Show source on GitHub