flora-pm / flora-server

A package index for the Haskell ecosystem
https://flora.pm/about
Other
124 stars 38 forks source link

Recoverable import failures #459

Open RaoulHC opened 9 months ago

RaoulHC commented 9 months ago

The algorithm we use to store releases files works well with concurrency, where separate releases might be trying to store the same files, but if an import fails midway for some other reason you end up with a partially imported tarball which isn't easily fixable.

One solution might be to add a tarball_status field to releases which can be used to recover an import if it didn't successfully fully import.