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

Open
#413 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
fastapi, python

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
10
Forks
4
Avg merge
4d 15h
Merged PRs (30d)
11

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from labthings/labthings-fastapi

All issues in labthings/labthings-fastapi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.