Skip to main content

reindex_human

Function reindex_human 

Source
pub fn reindex_human(
    session: Option<AdminSession>,
    pool: &State<DbPool>,
) -> Result<Redirect, AdminReject>
Expand description

The human twin of reindex: the health screen’s “Reindex database now” button. Gated by the signed-in AdminSession cookie (the health screen is itself signed-in-only; anonymous → sign-in). Spawns the same debounced reindex job and redirects to /jobs.