diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-10 14:56:38 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-11 10:53:13 +0000 |
| commit | ad09c355d13498639fd00b951100d7324938fea5 (patch) | |
| tree | f09acfad3f3d2a36b0a187d3192dfc84f3053b75 /bitbake | |
| parent | ec166484a2b2a15d0855ca152a019a64357d631d (diff) | |
| download | poky-ad09c355d13498639fd00b951100d7324938fea5.tar.gz | |
bitbake: command: Fix command complete event ordering
The command complete event triggers the UI to start new commands.
We should send this once we've cleaned up existing commands since
on very slow systems, this could otherwise cause failures. There
is a 30s timeout on incomming commands but slow systems have been
known to hit this on poorly configured I setups.
(Bitbake rev: d202298b3d989c39bc532b69c410e2e78b082a11)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/bb/command.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index baa7cbade1..59a979ee90 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
| @@ -143,14 +143,14 @@ class Command: | |||
| 143 | return bb.server.process.idleFinish(traceback.format_exc()) | 143 | return bb.server.process.idleFinish(traceback.format_exc()) |
| 144 | 144 | ||
| 145 | def finishAsyncCommand(self, msg=None, code=None): | 145 | def finishAsyncCommand(self, msg=None, code=None): |
| 146 | self.cooker.finishcommand() | ||
| 147 | self.process_server.clear_async_cmd() | ||
| 146 | if msg or msg == "": | 148 | if msg or msg == "": |
| 147 | bb.event.fire(CommandFailed(msg), self.cooker.data) | 149 | bb.event.fire(CommandFailed(msg), self.cooker.data) |
| 148 | elif code: | 150 | elif code: |
| 149 | bb.event.fire(CommandExit(code), self.cooker.data) | 151 | bb.event.fire(CommandExit(code), self.cooker.data) |
| 150 | else: | 152 | else: |
| 151 | bb.event.fire(CommandCompleted(), self.cooker.data) | 153 | bb.event.fire(CommandCompleted(), self.cooker.data) |
| 152 | self.cooker.finishcommand() | ||
| 153 | self.process_server.clear_async_cmd() | ||
| 154 | 154 | ||
| 155 | def reset(self): | 155 | def reset(self): |
| 156 | if self.remotedatastores: | 156 | if self.remotedatastores: |
