Consider different retention strategy for invocation outputs, particularly `Blob`s

Offen
#413 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
fastapi, python
Bereich
backend, performance

Rechercherichtung

Start by locating where action invocation outputs are stored and where the default 5-minute retention is configured; the issue names invocation outputs and Blob but no files or tests. Read the invocation and blob storage code plus any retention-related tests to understand the current lifecycle. Done looks like a proposed retention strategy that limits memory use for large Blob outputs while preserving access for the documented retention window.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Is your feature request related to a problem? Please describe.
Currently, action outputs are retained for a default 5 minutes. If those outputs are large, this can become a serious drain on resources.

Describe the solution you'd like
Better management of resources, resulting in less memory usage

Describe alternatives you've considered
Synchronous actions (a single post request and a response including the result) wouldn't need to be retained at all. However, they are not currently implemented and won't always be suitable.

Additional context
The OpenFlexure Microscope server needs to be quite careful with memory management on a Pi.

Vorherrschende Sprache
Python
Sterne
10
Forks
4
Ø Merge
4 T. 15 Std.
Gemergte PRs (30 T.)
11

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus labthings/labthings-fastapi

Alle Issues in labthings/labthings-fastapi

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.