summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/hashserv/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/hashserv/client.py')
-rw-r--r--bitbake/lib/hashserv/client.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/hashserv/client.py b/bitbake/lib/hashserv/client.py
index eeafeabda0..f676d267fa 100644
--- a/bitbake/lib/hashserv/client.py
+++ b/bitbake/lib/hashserv/client.py
@@ -105,6 +105,10 @@ class AsyncClient(bb.asyncrpc.AsyncClient):
105 await self._set_mode(self.MODE_NORMAL) 105 await self._set_mode(self.MODE_NORMAL)
106 return await self.send_message({"remove": {"where": where}}) 106 return await self.send_message({"remove": {"where": where}})
107 107
108 async def clean_unused(self, max_age):
109 await self._set_mode(self.MODE_NORMAL)
110 return await self.send_message({"clean-unused": {"max_age_seconds": max_age}})
111
108 112
109class Client(bb.asyncrpc.Client): 113class Client(bb.asyncrpc.Client):
110 def __init__(self): 114 def __init__(self):
@@ -120,6 +124,7 @@ class Client(bb.asyncrpc.Client):
120 "reset_stats", 124 "reset_stats",
121 "backfill_wait", 125 "backfill_wait",
122 "remove", 126 "remove",
127 "clean_unused",
123 ) 128 )
124 129
125 def _get_async_client(self): 130 def _get_async_client(self):