Skip to main content

classify_unclassified

Function classify_unclassified 

Source
pub async fn classify_unclassified(
    pool: &PgPool,
    vault: &Vault,
) -> AppResult<u64>
Expand description

Classifies the files that have no format yet (files from before the format registry, or after format was reset to NULL). Returns how many were classified.

ยงInvariants

  • Permission: none (maintenance task of the server, no actor).
  • Locks: none (the updates only touch rows whose format is still NULL).
  • Audit / notifications / webhooks: none.
  • Atomic: one transaction per file (file row and its default-typed versions).