/// <summary> /// If a job of the Sitecore Shrink module is currently running, this method returns the friendly job description of that job. /// When no jobs are running, an empty string is returned. /// </summary> /// <returns>The friendly name of the active Shrink job, or an empty string when it is not running.</returns> public ActionResult GetActiveJobDescription() { var activeJobInfo = new List <object>(); var jobs = JobInfo.MyJobs; if (jobs.Count > 0) { activeJobInfo = JobInfo.GetJobInfo(jobs[0]); } return(Json(activeJobInfo, JsonRequestBehavior.AllowGet)); }