verifiers 0.4.1.dev110__py3-none-any.whl → 0.4.1.dev111__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.
@@ -278,10 +278,24 @@ class EnvServerPool:
278
278
  entry = pending.get(request_id.bytes)
279
279
  if entry is None:
280
280
  continue
281
- with contextlib.suppress(zmq.ZMQError):
281
+ try:
282
282
  await self.frontend.send_multipart(
283
283
  [entry["client_id"], request_id, kind, data], copy=False
284
284
  )
285
+ except zmq.ZMQError:
286
+ # The client cannot take this episode. Free it at the worker;
287
+ # the empty request id leaves the cancel reply untracked.
288
+ with contextlib.suppress(UnicodeDecodeError):
289
+ await w["dealer"].send_multipart(
290
+ [
291
+ b"",
292
+ b"cancel",
293
+ msgpack.packb(
294
+ {"request_id": request_id.bytes.decode()},
295
+ use_bin_type=True,
296
+ ),
297
+ ]
298
+ )
285
299
  except (asyncio.CancelledError, KeyboardInterrupt):
286
300
  pass
287
301
  finally:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.4.1.dev110
3
+ Version: 0.4.1.dev111
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
@@ -168,7 +168,7 @@ verifiers/v1/serve/__init__.py,sha256=4Oe4xFVu-lyCHpG6u9e0TbmV7ZVYHiwFZXW8UO0H7m
168
168
  verifiers/v1/serve/client.py,sha256=el91rqoUpf_1Ty8-QVs_AV0MyNaQaQtxHYTLR2LwQHc,13948
169
169
  verifiers/v1/serve/delta.py,sha256=f7irrdqaVqNNrFdhbrQ7-_OKj6fP16KekHtch1ikoPk,12317
170
170
  verifiers/v1/serve/encoding.py,sha256=hBZFucAZK9riXOV3DaHcskq9zHTT8gVGkoFVOPfnr30,2499
171
- verifiers/v1/serve/pool.py,sha256=PQyP3-GLL9WFJbIe1L4IYCBOlOR0vTpwCctwrFuGgVo,17578
171
+ verifiers/v1/serve/pool.py,sha256=SF1d94vpH2CpDnSwpeITRkGLVbBzfD0CQodVZ_HCJew,18358
172
172
  verifiers/v1/serve/server.py,sha256=KS1OiRMNRnhncQXlzwrdjh5g0-xT3Ov74aFdgJ1b1ZY,14536
173
173
  verifiers/v1/serve/types.py,sha256=Ua_dE4sC-APox-0Pnm-jgWcrLa9Qywafel32KrawY5I,1752
174
174
  verifiers/v1/tasksets/__init__.py,sha256=2ijE3qIlLoUA02g6iysOwWQylyBBQL1GhSpjv8_bp0w,521
@@ -208,8 +208,8 @@ verifiers/v1/utils/scope.py,sha256=bzUEiWDOVdbj7dXOwGOlzsQ_-Xu0j9NR5TalQB-8TS8,8
208
208
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
209
209
  verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
210
210
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
211
- verifiers-0.4.1.dev110.dist-info/METADATA,sha256=F_U_zE_iCDSUQMAWaNfJTljjpJyw_3tqVy9dKrWc7n8,5265
212
- verifiers-0.4.1.dev110.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
213
- verifiers-0.4.1.dev110.dist-info/entry_points.txt,sha256=O1bIO0gyJWuLfWtTGF0h-JkNz6FkyXP7Z9iMFYnjeMI,222
214
- verifiers-0.4.1.dev110.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
215
- verifiers-0.4.1.dev110.dist-info/RECORD,,
211
+ verifiers-0.4.1.dev111.dist-info/METADATA,sha256=GFmXQVJls8KmuAi1axiSblaN2LqWhKZrXvFdgajev0U,5265
212
+ verifiers-0.4.1.dev111.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
213
+ verifiers-0.4.1.dev111.dist-info/entry_points.txt,sha256=O1bIO0gyJWuLfWtTGF0h-JkNz6FkyXP7Z9iMFYnjeMI,222
214
+ verifiers-0.4.1.dev111.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
215
+ verifiers-0.4.1.dev111.dist-info/RECORD,,