DiamondLightSource / DiamondLightSource/heliotrapi

Jobs should have persistance - create a DB

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Jobs should persist even if the API crashes for some reason. Info about the job, and any details should be included. Basically the AnalysisRequest and AnalysisResponse

Could create a PVC and add a DB there, or just put a DB on the filesystem

Related:

https://github.com/DiamondLightSource/heliotrapi/issues/36

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how AnalysisRequest and AnalysisResponse are currently handled, then read related issue #36. Define what job information and details must survive an API crash and choose between filesystem storage and a database backed by a PVC. Done means jobs and their analysis data persist and remain available after the API restarts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.