pub fn filter_api_token(
    context: Arc<RwLock<SchedulerContext>>,
    is_token_enabled: bool
) -> impl Filter<Extract = (), Error = Rejection> + Clone