inspect-ai 0.3.106__py3-none-any.whl → 0.3.107__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.
inspect_ai/_eval/run.py CHANGED
@@ -522,15 +522,16 @@ async def startup_sandbox_environments(
522
522
 
523
523
  # return shutdown method
524
524
  async def shutdown() -> None:
525
- for cleanup_jobs in cleanups:
526
- try:
527
- cleanup_fn, config, task_run_dir = cleanup_jobs
528
- with chdir(task_run_dir):
529
- await cleanup_fn("shutdown", config, cleanup)
530
- except BaseException as ex:
531
- log.warning(
532
- f"Error occurred shutting down sandbox environments: {exception_message(ex)}"
533
- )
525
+ with anyio.CancelScope(shield=True):
526
+ for cleanup_jobs in cleanups:
527
+ try:
528
+ cleanup_fn, config, task_run_dir = cleanup_jobs
529
+ with chdir(task_run_dir):
530
+ await cleanup_fn("shutdown", config, cleanup)
531
+ except BaseException as ex:
532
+ log.warning(
533
+ f"Error occurred shutting down sandbox environments: {exception_message(ex)}"
534
+ )
534
535
 
535
536
  return shutdown
536
537
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: inspect_ai
3
- Version: 0.3.106
3
+ Version: 0.3.107
4
4
  Summary: Framework for large language model evaluations
5
5
  Author: UK AI Security Institute
6
6
  License: MIT License
@@ -52,7 +52,7 @@ inspect_ai/_eval/evalset.py,sha256=cGLAX6qnMMi-LTenLtu47wv0JJTjAvFLbE6zKfZbfTg,2
52
52
  inspect_ai/_eval/list.py,sha256=VbZ-2EI6MqrXvCN7VTz21TQSoU5K5_Q0hqhxmj5A_m0,3744
53
53
  inspect_ai/_eval/loader.py,sha256=dafv4TlQDqdvzPyrQrBsNiCzhvqjwmcVQzweX-AL1os,24805
54
54
  inspect_ai/_eval/registry.py,sha256=IMyF_Ru11DrqjFe1yZJvghQcJSfssQ08wQqTt_F38Ag,5570
55
- inspect_ai/_eval/run.py,sha256=_BKbpGppIvfl_ZFzpq28U86f8IBB7QHYf11ScANdf6U,21509
55
+ inspect_ai/_eval/run.py,sha256=Wlmc4pE5hUTyGRn2iYC1xLleyI2R8ffIoCPkITTVePc,21590
56
56
  inspect_ai/_eval/score.py,sha256=KodaNhMCE1KV8qS33zj7Q8I0LD080WRCb32tyg1956w,10443
57
57
  inspect_ai/_eval/task/__init__.py,sha256=6FvojMW3yo36L7xDacppCHDxt6A8_tzj_ftg5bQ6eNk,199
58
58
  inspect_ai/_eval/task/constants.py,sha256=_YGvlhJL7kC7_3OCbyjDabnJNX2kopH_kRxwODF9cKw,117
@@ -784,9 +784,9 @@ inspect_ai/util/_sandbox/docker/internal.py,sha256=c8X8TLrBPOvsfnq5TkMlb_bzTALyc
784
784
  inspect_ai/util/_sandbox/docker/prereqs.py,sha256=0j6_OauBBnVlpBleADcZavIAAQZy4WewVjbRn9c0stg,3355
785
785
  inspect_ai/util/_sandbox/docker/service.py,sha256=hhHIWH1VDFLwehdGd19aUBD_VKfDO3GCPxpw1HSwVQk,2437
786
786
  inspect_ai/util/_sandbox/docker/util.py,sha256=EeInihCNXgUWxaqZ4dNOJd719kXL2_jr63QCoXn68vA,3154
787
- inspect_ai-0.3.106.dist-info/licenses/LICENSE,sha256=xZPCr8gTiFIerrA_DRpLAbw-UUftnLFsHxKeW-NTtq8,1081
788
- inspect_ai-0.3.106.dist-info/METADATA,sha256=R9CGAToXOHjO1m2iMWBrH21ekfL-X7bOyM4cOsPM8Ik,5467
789
- inspect_ai-0.3.106.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
790
- inspect_ai-0.3.106.dist-info/entry_points.txt,sha256=WGGLmzTzDWLzYfiyovSY6oEKuf-gqzSDNOb5V-hk3fM,54
791
- inspect_ai-0.3.106.dist-info/top_level.txt,sha256=Tp3za30CHXJEKLk8xLe9qGsW4pBzJpEIOMHOHNCXiVo,11
792
- inspect_ai-0.3.106.dist-info/RECORD,,
787
+ inspect_ai-0.3.107.dist-info/licenses/LICENSE,sha256=xZPCr8gTiFIerrA_DRpLAbw-UUftnLFsHxKeW-NTtq8,1081
788
+ inspect_ai-0.3.107.dist-info/METADATA,sha256=UDm4EwaGEHfBNNwE6qudz_TpT9awiq0wByKkjQn_sFE,5467
789
+ inspect_ai-0.3.107.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
790
+ inspect_ai-0.3.107.dist-info/entry_points.txt,sha256=WGGLmzTzDWLzYfiyovSY6oEKuf-gqzSDNOb5V-hk3fM,54
791
+ inspect_ai-0.3.107.dist-info/top_level.txt,sha256=Tp3za30CHXJEKLk8xLe9qGsW4pBzJpEIOMHOHNCXiVo,11
792
+ inspect_ai-0.3.107.dist-info/RECORD,,