You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling generate and run the output stage of generate-oasis-files is not correctly linked to the input of generate-losses
See this func from the Platform 1 version of the code before it was scrapped for Platform 2, somthing must have broken when porting the change over to the newer verison.
[2023-09-26 09:43:13,230: ERROR/ForkPoolWorker-8] Task prepare_losses_generation_directory[8370cb83-1329-4755-9e76-b47383362364] raised unexpected: OasisException('The path /tmp/run/analysis-60_losses-59b7de781f904187b6964b56394f66ff/input-data (Path to the directory in which to generate the Oasis files) must exist for Computation Step GenerateLossesDir')
Traceback (most recent call last):
File "/home/worker/.local/lib/python3.10/site-packages/celery/app/trace.py", line 477, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/worker/.local/lib/python3.10/site-packages/celery/app/trace.py", line 760, in __protected_call__
return self.run(*args, **kwargs)
File "/home/worker/.local/lib/python3.10/site-packages/celery/app/autoretry.py", line 60, in run
ret = task.retry(exc=exc, **retry_kwargs)
File "/home/worker/.local/lib/python3.10/site-packages/celery/app/task.py", line 736, in retry
raise_with_context(exc)
File "/home/worker/.local/lib/python3.10/site-packages/celery/app/autoretry.py", line 38, in run
return task._orig_run(*args, **kwargs)
File "/home/worker/src/model_execution_worker/distributed_tasks.py", line 942, in run
return fn(self, params, *args, analysis_id=analysis_id, **kwargs)
File "/home/worker/src/model_execution_worker/distributed_tasks.py", line 990, in prepare_losses_generation_directory
params['analysis_settings'] = OasisManager().generate_losses_dir(**params)
File "/home/worker/.local/lib/python3.10/site-packages/oasislmf/utils/log.py", line 123, in wrapper
result = func(*args, **kwargs)
File "/home/worker/.local/lib/python3.10/site-packages/oasislmf/manager.py", line 86, in interface
return computation_cls(**kwargs).run()
File "/home/worker/.local/lib/python3.10/site-packages/oasislmf/computation/base.py", line 56, in __init__
raise OasisException(
oasislmf.utils.exceptions.OasisException: The path /tmp/run/analysis-60_losses-59b7de781f904187b6964b56394f66ff/input-data (Path to the directory in which to generate the Oasis files) must exist for Computation Step GenerateLossesDir
The text was updated successfully, but these errors were encountered:
Issue Description
When calling generate and run the output stage of
generate-oasis-files
is not correctly linked to the input ofgenerate-losses
See this func from the Platform 1 version of the code before it was scrapped for Platform 2, somthing must have broken when porting the change over to the newer verison.
OasisPlatform/src/server/oasisapi/analyses/models.py
Lines 266 to 277 in 195bcb6
The text was updated successfully, but these errors were encountered: