Added a new method for triggering jobs rather than scheduling ad-hoc.
This commit is contained in:
parent
a7516d313d
commit
d23a569446
4 changed files with 51 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue