Skip to main content

run_query

Function run_query 

Source
pub fn run_query(
    files: &[Arc<FileTasks>],
    query: &TaskQuery,
    today: NaiveDate,
) -> TaskQueryResponse
Expand description

Runs a task query over an index snapshot.

today is a parameter rather than a Local::now() call so the bucketing is testable without mocking the clock; the handler supplies the real one.

scan_in_progress is left false; the handler fills it in from the repo, mirroring search_handler.