Open VannTen opened 2 years ago
/sig stack-guidance /priority important-longterm
So, my last thoughts on this:
First I would need a query of taking a package index and returning all the currently stored document ids in object storage.
Once that done, the workflow is basically:
Does that seems realistic ? I'm still not completely at ease with the storage model, so opinions on that strategy would be welcome.
@mayaCostantini
Problem statement
For https://github.com/thoth-station/management-api/issues/790, the management API need to trigger the deletion of an index. But it could potentially take a long time to delete all the related storage items, and the management API needs to return in a reasonnable timeframe (http, so in seconds).
Proposal description
Split the deletion in two part:
The purpose of splitting is to be tolerant of failures/timeout etc of the "delete workflow".
Alternatives
Skip the first step and directly create the "delete workflow".
However, this seems fragile in certain cases:
It does avoid changing the DB schema though.
Additional context
Acceptance Criteria
TODO