mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-25 22:37:27 -04:00
Fixed: Unnecessary idle cpu usage
sonarr ref 4386 (cherry picked from commit 5a69801877eb72899dd9867c39a1b88b7114fe5b) Co-authored-by: Taloth Saldono <Taloth@users.noreply.github.com>
This commit is contained in:
@@ -188,6 +188,8 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||
public void Complete(CommandModel command, string message)
|
||||
{
|
||||
Update(command, CommandStatus.Completed, message);
|
||||
|
||||
_commandQueue.PulseAllConsumers();
|
||||
}
|
||||
|
||||
public void Fail(CommandModel command, string message, Exception e)
|
||||
@@ -195,6 +197,8 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||
command.Exception = e.ToString();
|
||||
|
||||
Update(command, CommandStatus.Failed, message);
|
||||
|
||||
_commandQueue.PulseAllConsumers();
|
||||
}
|
||||
|
||||
public void Requeue()
|
||||
|
||||
Reference in New Issue
Block a user