Skip to main content

scan_unscanned_references

Function scan_unscanned_references 

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

Scans the current versions that were stored before reference tracking existed (or before their format was known) for referenced CAD files. Returns how many versions were scanned.

ยงInvariants

  • Permission: none (maintenance task of the server, no actor).
  • Locks: none.
  • Audit / notifications / webhooks: none.
  • Atomic: one transaction per version (references::store_file_references stores the names and sets references_scanned), so an interrupted run can be repeated.