mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
runqueue.py: initialize rqexe at RunQueue's init function
Sometimes user stops the build before runqueue is established, for example, at the stage of running add_unresolved() function. This will cause RunQueue to use rqexe field in finish_runqeue() before initialized. This will cause endless print of "Running idle function" if use process server. This commit initialize rqexe variable in RunQueue's init function, and add a judgement in finish_runqueue(). (Bitbake rev: 59f817723172092a87738c79f555e605f55ea375) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
13cad7147f
commit
ba8538b3a9
@@ -779,6 +779,8 @@ class RunQueue:
|
|||||||
# For disk space monitor
|
# For disk space monitor
|
||||||
self.dm = monitordisk.diskMonitor(cfgData)
|
self.dm = monitordisk.diskMonitor(cfgData)
|
||||||
|
|
||||||
|
self.rqexe = None
|
||||||
|
|
||||||
def check_stamps(self):
|
def check_stamps(self):
|
||||||
unchecked = {}
|
unchecked = {}
|
||||||
current = []
|
current = []
|
||||||
@@ -996,6 +998,9 @@ class RunQueue:
|
|||||||
return retval
|
return retval
|
||||||
|
|
||||||
def finish_runqueue(self, now = False):
|
def finish_runqueue(self, now = False):
|
||||||
|
if not self.rqexe:
|
||||||
|
return
|
||||||
|
|
||||||
if now:
|
if now:
|
||||||
self.rqexe.finish_now()
|
self.rqexe.finish_now()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user