Ejemplo n.º 1
0
 public StatusDto Run(string jobId)
 {
     try {
         _reqh.Run(jobId);
         return(StatusDto.Success);
     }
     catch (Exception ex) {
         return(StatusDto.Failure($"Failed to run job with id '{jobId}'! Reason: {ex}"));
     }
 }
Ejemplo n.º 2
0
 public StatusDto RunAllDue()
 {
     try {
         _reqh.RunAllDue();
         return(StatusDto.Success);
     }
     catch (Exception ex) {
         return(StatusDto.Failure($"Failed to run due jobs! Reason: {ex}"));
     }
 }