Skip to content

How to persist values across Fledge/South Plugin restarts #1538

@kwitekrac

Description

@kwitekrac

Consider the following scenario:
A South plugin receives a message containing an event's start time. After some time, it receives another message containing the corresponding end time. The goal is to calculate the duration between the start time (t_start) and the stop time (t_stop).

  1. What is the recommended approach to store t_start in a way that persists even after a plugin or Fledge restart?
  2. Is it possible to directly access assets or the storage database from a South plugin?

Would using a built-in storage service be preferable, or is there a better pattern for persisting and retrieving stateful data across reboots?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions