1
0
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:
servarr[bot]
2021-03-22 23:21:15 +00:00
committed by GitHub
parent 53b9332675
commit 50ebd283dd
2 changed files with 37 additions and 2 deletions
@@ -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()