verifiers 0.3.2.dev52__py3-none-any.whl → 0.3.2.dev53__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -187,8 +187,12 @@ class EnvClient:
187
187
  self._receiver = None
188
188
  # Let scheduled fire-and-forget cancels reach the socket first, or a
189
189
  # run cancelled right before close() leaves its server-side rollout
190
- # running. Loop: awaiting one wave can schedule another
190
+ # running. Pop before awaiting: awaiting finished tasks never yields
191
+ # (since CPython 3.12 a gather of them completes eagerly), so their
192
+ # queued `discard` callbacks cannot be what empties the set
191
193
  while self._cancel_tasks:
192
- await asyncio.gather(*list(self._cancel_tasks), return_exceptions=True)
194
+ task = self._cancel_tasks.pop()
195
+ with contextlib.suppress(asyncio.CancelledError):
196
+ await task
193
197
  self.socket.close()
194
198
  self.ctx.term()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.3.2.dev52
3
+ Version: 0.3.2.dev53
4
4
  Summary: Verifiers: Environments for LLM Reinforcement Learning
5
5
  Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
6
6
  Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
@@ -149,7 +149,7 @@ verifiers/v1/runtimes/subprocess.py,sha256=IO82fI1wFbeTtV7T1AHSF8iTUyT9yGJFIUmCK
149
149
  verifiers/v1/runtimes/docker/__init__.py,sha256=K6xbJAT1F3-PtgP5Gum2UJKQ8Re1Yz90BP8Uc7Npec4,20594
150
150
  verifiers/v1/runtimes/docker/egress.py,sha256=iFH_1XotlEM-OCaW7GNu3TWVEq1sqesKYweyVBX8g90,14360
151
151
  verifiers/v1/serve/__init__.py,sha256=doImCSxSYZEjVDXfRafLHkhHXcXQxzA6qUGMBQ8bSko,477
152
- verifiers/v1/serve/client.py,sha256=UWmLUkwhys241PCe5DymYs_YHxypN-u6GL4WF8A0OjQ,7583
152
+ verifiers/v1/serve/client.py,sha256=biy46qOOFTjMXSIsY8W1vMEfctn7usCeNuBQsJqc2mc,7789
153
153
  verifiers/v1/serve/encoding.py,sha256=5tKagKZKwBPN6VydLObCKDzLnijrvRwMjuyVQUq5BKA,2399
154
154
  verifiers/v1/serve/pool.py,sha256=HZsJPcru9eNrxo3Rmi-Vdt1tjZwqo2oI4Ql_IKfUMtY,15443
155
155
  verifiers/v1/serve/server.py,sha256=h1B53RZBuYgRt4xmh9L6jBJ0KvCdq7wmCAa3nwkJMok,8778
@@ -189,8 +189,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
189
189
  verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
190
190
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
191
191
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
192
- verifiers-0.3.2.dev52.dist-info/METADATA,sha256=g2XajQ0FKtnxFleFE_R5mxzDMXVNOapplm1pEpfhJ0o,4153
193
- verifiers-0.3.2.dev52.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
194
- verifiers-0.3.2.dev52.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
195
- verifiers-0.3.2.dev52.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
196
- verifiers-0.3.2.dev52.dist-info/RECORD,,
192
+ verifiers-0.3.2.dev53.dist-info/METADATA,sha256=WsxrCV0NFu4InfbroNkjxpmMRQpQxV8jGbBN1f23GEM,4153
193
+ verifiers-0.3.2.dev53.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
194
+ verifiers-0.3.2.dev53.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
195
+ verifiers-0.3.2.dev53.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
196
+ verifiers-0.3.2.dev53.dist-info/RECORD,,