Open sambles opened 1 month ago
For input generation the READY status indicates an execution has completed. At the moment this is called in the 2nd last sub-task of the celery canvas when storing the result. https://github.com/OasisLMF/OasisPlatform/blob/20b0aa391335a420bf4dcdd70caa8e02b771fb60/src/server/oasisapi/analyses/v2_api/tasks.py#L484
READY
However there is still the cleanup_input_generation to complete: https://github.com/OasisLMF/OasisPlatform/blob/20b0aa391335a420bf4dcdd70caa8e02b771fb60/src/model_execution_worker/distributed_tasks.py#L723-L743
cleanup_input_generation
The last task of the canvas is the correct place to set the analysis state
Issue Description
For input generation the
READY
status indicates an execution has completed. At the moment this is called in the 2nd last sub-task of the celery canvas when storing the result. https://github.com/OasisLMF/OasisPlatform/blob/20b0aa391335a420bf4dcdd70caa8e02b771fb60/src/server/oasisapi/analyses/v2_api/tasks.py#L484However there is still the
cleanup_input_generation
to complete: https://github.com/OasisLMF/OasisPlatform/blob/20b0aa391335a420bf4dcdd70caa8e02b771fb60/src/model_execution_worker/distributed_tasks.py#L723-L743The last task of the canvas is the correct place to set the analysis state