diff options
| author | Paul Barker <pbarker@konsulko.com> | 2021-02-05 11:26:10 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-10 23:48:16 +0000 |
| commit | 40ecec326effeb1f4dd647849293f18118d4dd21 (patch) | |
| tree | 6ee2bee7cce76dcafa3cb03c557ffa8dcc93c613 /bitbake/lib/hashserv/client.py | |
| parent | 73160aac0608cc186be1ec991b08ff8f130cdb8f (diff) | |
| download | poky-40ecec326effeb1f4dd647849293f18118d4dd21.tar.gz | |
bitbake: hashserv: Add get-outhash message
The get-outhash message can be sent via the get_outhash client method.
This works in a similar way to the get message but looks up a db entry
by outhash rather than by taskhash. It is intended to be used as a
read-only form of the report message.
As both handle_get_outhash and handle_report use the same query string
we can factor this out.
(Bitbake rev: dc19606ada29a4d8afde4fcecd8ec986b47b867e)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/hashserv/client.py')
| -rw-r--r-- | bitbake/lib/hashserv/client.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/hashserv/client.py b/bitbake/lib/hashserv/client.py index 0b7f4e42e9..e05c1eb568 100644 --- a/bitbake/lib/hashserv/client.py +++ b/bitbake/lib/hashserv/client.py | |||
| @@ -170,6 +170,12 @@ class AsyncClient(object): | |||
| 170 | {"get": {"taskhash": taskhash, "method": method, "all": all_properties}} | 170 | {"get": {"taskhash": taskhash, "method": method, "all": all_properties}} |
| 171 | ) | 171 | ) |
| 172 | 172 | ||
| 173 | async def get_outhash(self, method, outhash, taskhash): | ||
| 174 | await self._set_mode(self.MODE_NORMAL) | ||
| 175 | return await self.send_message( | ||
| 176 | {"get-outhash": {"outhash": outhash, "taskhash": taskhash, "method": method}} | ||
| 177 | ) | ||
| 178 | |||
| 173 | async def get_stats(self): | 179 | async def get_stats(self): |
| 174 | await self._set_mode(self.MODE_NORMAL) | 180 | await self._set_mode(self.MODE_NORMAL) |
| 175 | return await self.send_message({"get-stats": None}) | 181 | return await self.send_message({"get-stats": None}) |
