Added a new method for triggering jobs rather than scheduling ad-hoc.

This commit is contained in:
Joseph Milazzo 2021-03-14 09:39:48 -05:00
parent a7516d313d
commit d23a569446
4 changed files with 51 additions and 16 deletions

View file

@ -63,7 +63,8 @@ namespace API.Services.Tasks
_scannedSeries = null;
}
//[DisableConcurrentExecution(timeoutInSeconds: 360)]
[DisableConcurrentExecution(5)]
[AutomaticRetry(Attempts = 0, LogEvents = false, OnAttemptsExceeded = AttemptsExceededAction.Delete)]
public void ScanLibrary(int libraryId, bool forceUpdate)
{
_forceUpdate = forceUpdate;