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

Aberta
#413 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
fastapi, python
Domínio
backend, performance

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
10
Forks
4
Merge médio
4d 15h
PRs com merge (30d)
11

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de labthings/labthings-fastapi

Todas as issues de labthings/labthings-fastapi

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.