Пример #1
0
        ///<summary>
        ///Obtiene las tareas ejecutadas a partir de todas las tareas recurrentes vinculadas a un repositorio
        ///</summary>
        ///<param name="repositoryID">Identificador del repositorio</param>
        ///<returns>Lista de tareas</returns>
        public List <JobViewModel> GetJobsOfRecurringJob(Guid repositoryID)
        {
            List <RecurringJobViewModel> listRecurring = GetRecurringJobs(repositoryID);
            List <JobViewModel>          listJobs      = new List <JobViewModel>();

            foreach (var recurring in listRecurring)
            {
                var listJobsOfRecurringJob = _cronApiService.GetJobsOfRecurringJob(recurring.Id);
                foreach (var job in listJobsOfRecurringJob)
                {
                    listJobs.Add(job);
                }
            }
            return(listJobs);
        }
 public IActionResult GetJobsOfRecurringJob(string id)
 {
     return(Ok(_cronApiService.GetJobsOfRecurringJob(id)));
 }