verifiers 0.4.1.dev82__py3-none-any.whl → 0.4.1.dev83__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.
@@ -233,7 +233,16 @@ class RuntimeBackend(ABC):
233
233
  Best-effort and idempotent, like `cleanup`. An override must not consume state
234
234
  `cleanup` keys off before its first await: if the event loop dies mid-teardown
235
235
  (second Ctrl-C), the atexit backstop must still find the resource."""
236
- await asyncio.to_thread(self.cleanup)
236
+ try:
237
+ # Stop background commands before removing their working directory.
238
+ for process in self._background:
239
+ with contextlib.suppress(Exception):
240
+ async with asyncio.timeout(5):
241
+ await process.kill()
242
+ await process.wait()
243
+ self._background.clear()
244
+ finally:
245
+ await asyncio.to_thread(self.cleanup)
237
246
 
238
247
  def cleanup(self) -> None:
239
248
  """Synchronously free the provisioned resource — best-effort and idempotent. The
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.4.1.dev82
3
+ Version: 0.4.1.dev83
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
@@ -152,7 +152,7 @@ verifiers/v1/mcp/launch.py,sha256=nZHHOHaHirTVcr6Vevh9iflJQQfm9xYjStHRaXp9-Q8,30
152
152
  verifiers/v1/mcp/server.py,sha256=DT3xRf3Gx9lpYM7IdHOrB1yUoDaylqHEAmJ1QO_HoDs,13771
153
153
  verifiers/v1/mcp/toolset.py,sha256=Il_SVt8LG-vIXfPi5TmURZ5O94lXSuNsSO-G0SjjaAI,2290
154
154
  verifiers/v1/runtimes/__init__.py,sha256=JrBktZBcRLSnnZh_Er9IuGOVBGYUybJSPHi1q_b-UrI,3386
155
- verifiers/v1/runtimes/base.py,sha256=9hFlybPMQn0yo3efsVLAPJshMHIttuIme4FPqfdowno,15529
155
+ verifiers/v1/runtimes/base.py,sha256=_9AWq7KMW3QNV05NARMB4i_kSZpDqrRZoOech349WqQ,15919
156
156
  verifiers/v1/runtimes/compose.py,sha256=MNZV1NxL9qnpdABmYTJK3YLTYhPbEw3E0dQWlMru8Vw,15840
157
157
  verifiers/v1/runtimes/deployment.py,sha256=8VVn9Bu7CizavANgACnxQvx4K_zT8KodfD1yL9ASumc,7080
158
158
  verifiers/v1/runtimes/egress.py,sha256=SMq_Gm7hroQ-80lR6ZdPwqImlLtP3E7DO3Yqt517xiY,23665
@@ -207,8 +207,8 @@ verifiers/v1/utils/scope.py,sha256=bzUEiWDOVdbj7dXOwGOlzsQ_-Xu0j9NR5TalQB-8TS8,8
207
207
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
208
208
  verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
209
209
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
210
- verifiers-0.4.1.dev82.dist-info/METADATA,sha256=KQdLSgwMsSMJ8iBdVxdEI0YyjQWtAylahiTIczE6-H8,5234
211
- verifiers-0.4.1.dev82.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
212
- verifiers-0.4.1.dev82.dist-info/entry_points.txt,sha256=O1bIO0gyJWuLfWtTGF0h-JkNz6FkyXP7Z9iMFYnjeMI,222
213
- verifiers-0.4.1.dev82.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
214
- verifiers-0.4.1.dev82.dist-info/RECORD,,
210
+ verifiers-0.4.1.dev83.dist-info/METADATA,sha256=PmEQeISIa28yOnBqWQy8pZJrShp3I0fp3D_UJNobrLw,5234
211
+ verifiers-0.4.1.dev83.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
212
+ verifiers-0.4.1.dev83.dist-info/entry_points.txt,sha256=O1bIO0gyJWuLfWtTGF0h-JkNz6FkyXP7Z9iMFYnjeMI,222
213
+ verifiers-0.4.1.dev83.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
214
+ verifiers-0.4.1.dev83.dist-info/RECORD,,