Closed sambles closed 5 months ago
The PR https://github.com/OasisLMF/OasisPlatform/pull/994 fixed the missing ktools log dir tar in version 2.3.2
2.3.2
src/model_execution_worker/distributed_tasks.py 983: 'run_logs': filestore.put(os.path.join(res['model_run_dir'], 'log'), arcname='logs'), src/server/oasisapi/analyses/v2_api/tasks.py 549: analysis.run_log_file = store_file(result['run_logs'], 'application/gzip', initiator, filename=f'analysis_{analysis_id}_logs.tar.gz')
When a V2-worker-monitor processes a generate losses return from a coreoasis/model_worker:2.3.0 image then analyses will fail with
=== Trace Back === KeyError: ‘run_logs’
Add handling so that analyses don't fail when this happens. Instead skip attaching the log tar and continue
Issue Description
The PR https://github.com/OasisLMF/OasisPlatform/pull/994 fixed the missing ktools log dir tar in version
2.3.2
When a V2-worker-monitor processes a generate losses return from a coreoasis/model_worker:2.3.0 image then analyses will fail with
Add handling so that analyses don't fail when this happens. Instead skip attaching the log tar and continue