JobQueue: fixed incorrect requeuing.

* A dependent job was requeued even if it wasn't part of the queue
  before. The code relied on dependent jobs being already enqueued;
  but that cannot be guaranteed.
* If a job failed, its dependent jobs are now also set to failed, so
  that they won't be requeued at a later point.
* This caused some of the "Launching xxx failed: Operation not allowed"
  messages in the boot process. Those actually weren't harmless, and
  could mess up the natural job order.
This commit is contained in:
Axel Dörfler
2015-10-18 13:11:26 +02:00
parent e21da03a34
commit c80084b025
2 changed files with 33 additions and 8 deletions
+10
View File
@@ -30,6 +30,16 @@ public:
fJob._ClearTicketNumber();
}
void SetState(BJobState state)
{
fJob.SetState(state);
}
void NotifyStateListeners()
{
fJob.NotifyStateListeners();
}
private:
BJob& fJob;
};