Lines Matching refs:SchedulerError
264 pub enum SchedulerError {
272 impl Debug for SchedulerError {
278 SchedulerError::DependencyNotFound(current, msg) => {
287 SchedulerError::RunError(msg) => {
290 SchedulerError::InvalidTargetArch(msg) => {
303 ) -> Result<Self, SchedulerError> {
325 pub fn add_tasks(&mut self, tasks: Vec<(PathBuf, DADKTask)>) -> Result<(), SchedulerError> {
329 if let Err(SchedulerError::InvalidTargetArch(_)) = &e {
351 ) -> Result<Arc<SchedEntity>, SchedulerError> {
353 return Err(SchedulerError::InvalidTargetArch(format!(
379 return Err(SchedulerError::TaskError(format!(
399 pub fn run(&self) -> Result<(), SchedulerError> {
402 .map_err(|e| SchedulerError::RunError(format!("{:?}", e)))?;
417 fn run_with_topo_sort(&self) -> Result<(), SchedulerError> {
444 fn run_without_topo_sort(&self) -> Result<(), SchedulerError> {
563 fn check_not_exists_dependency(&self) -> Result<(), SchedulerError> {
572 return Err(SchedulerError::DependencyNotFound(