pub type TaskHandler = fn(AppState) -> Pin<Box<dyn Future<Output = AutumnResult<()>> + Send>>;
Handler function type for scheduled tasks.