mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-04 10:34:59 +02:00
parent
58de0310fd
commit
c641733781
@ -522,7 +522,7 @@ private async Task<List<DownloadDecision>> Dispatch(Func<IIndexer, Task<IList<Re
|
||||
|
||||
var reports = batch.SelectMany(x => x).ToList();
|
||||
|
||||
_logger.Debug("Total of {0} reports were found for {1} from {2} indexers", reports.Count, criteriaBase, indexers.Count);
|
||||
_logger.ProgressDebug("Total of {0} reports were found for {1} from {2} indexers", reports.Count, criteriaBase, indexers.Count);
|
||||
|
||||
// Update the last search time for all episodes if at least 1 indexer was searched.
|
||||
if (indexers.Any())
|
||||
|
@ -5,7 +5,6 @@ namespace NzbDrone.Core.Indexers
|
||||
public class RssSyncCommand : Command
|
||||
{
|
||||
public override bool SendUpdatesToClient => true;
|
||||
|
||||
public override bool IsLongRunning => true;
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ public virtual bool SendUpdatesToClient
|
||||
}
|
||||
|
||||
public virtual bool UpdateScheduledTask => true;
|
||||
public virtual string CompletionMessage => "Completed";
|
||||
public virtual string CompletionMessage => null;
|
||||
public virtual bool RequiresDiskAccess => false;
|
||||
public virtual bool IsExclusive => false;
|
||||
public virtual bool IsLongRunning => false;
|
||||
|
@ -1,10 +1,13 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using NzbDrone.Core.Messaging.Commands;
|
||||
|
||||
namespace NzbDrone.Core.ProgressMessaging
|
||||
{
|
||||
public static class ProgressMessageContext
|
||||
{
|
||||
private static AsyncLocal<CommandModel> _commandModelAsync = new AsyncLocal<CommandModel>();
|
||||
|
||||
[ThreadStatic]
|
||||
private static CommandModel _commandModel;
|
||||
|
||||
@ -13,8 +16,15 @@ public static class ProgressMessageContext
|
||||
|
||||
public static CommandModel CommandModel
|
||||
{
|
||||
get { return _commandModel; }
|
||||
set { _commandModel = value; }
|
||||
get
|
||||
{
|
||||
return _commandModel ?? _commandModelAsync.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
_commandModel = value;
|
||||
_commandModelAsync.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool LockReentrancy()
|
||||
|
@ -39,5 +39,7 @@ public RefreshSeriesCommand(List<int> seriesIds, bool isNewSeries = false)
|
||||
public override bool UpdateScheduledTask => SeriesIds.Empty();
|
||||
|
||||
public override bool IsLongRunning => true;
|
||||
|
||||
public override string CompletionMessage => "Completed";
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,5 @@ public class ApplicationUpdateCommand : Command
|
||||
{
|
||||
public override bool SendUpdatesToClient => true;
|
||||
public override bool IsExclusive => true;
|
||||
|
||||
public override string CompletionMessage => null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user