mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 07:37:10 -07:00
JobProvider now fully works based on a queuing logic, which allows more than one job to be queued. (EasyButton included!)
This commit is contained in:
parent
fdd6e37b24
commit
2f786bf424
9 changed files with 160 additions and 51 deletions
|
@ -54,7 +54,7 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
public ActionResult RssSync()
|
||||
{
|
||||
_jobProvider.BeginExecute(typeof(RssSyncJob));
|
||||
_jobProvider.QueueJob(typeof(RssSyncJob));
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
|
@ -119,7 +119,7 @@ namespace NzbDrone.Web.Controllers
|
|||
seriesInDb.RemoveAll(s => s.SeriesId == id);
|
||||
|
||||
//Start removing this series
|
||||
_jobProvider.BeginExecute(typeof(DeleteSeriesJob), id);
|
||||
_jobProvider.QueueJob(typeof(DeleteSeriesJob), id);
|
||||
|
||||
var series = GetSeriesModels(seriesInDb);
|
||||
return View(new GridModel(series));
|
||||
|
@ -274,7 +274,7 @@ namespace NzbDrone.Web.Controllers
|
|||
public ActionResult UpdateInfo(int seriesId)
|
||||
{
|
||||
//Syncs the episodes on disk for the specified series
|
||||
_jobProvider.BeginExecute(typeof(UpdateInfoJob), seriesId);
|
||||
_jobProvider.QueueJob(typeof(UpdateInfoJob), seriesId);
|
||||
return RedirectToAction("Details", new { seriesId });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue