Feature: support for async deletion of a package index #2657
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
sig/stack-guidance
Categorizes an issue or PR as relevant to SIG Stack Guidance.
Problem statement
For thoth-station/management-api#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:
'enabled/disabled' state -> this is called by the management-api
is called by an async workflow created by the management-api
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
easily
cascade delete.
to postgres.
Acceptance Criteria
TODO
The text was updated successfully, but these errors were encountered: