pub async fn preflight(
request: ValidatedTuneRequest,
app_config: &BhtuneConfig,
database: Option<&SqlitePool>,
user_templates: Option<&[DcsTemplate]>,
) -> Result<PreflightReport>Expand description
Checks a request without invoking tune preparation, the polling loop, or any database mutation. An existing database is queried only through a read-only pool; when it is absent, the current built-in and configured catalog templates provide the lookup data.