StatCan / openmpp

Implementing the OpenM++ microsimulation framework as a Kubernetes service on the StatCan cloud.
0 stars 1 forks source link

Bug: Model Runs fail to Appear in OMS UI #57

Closed Souheil-Yazji closed 9 months ago

Souheil-Yazji commented 9 months ago

Describe the bug

The model runs are currently failing to appear in the OMS UI.

Environment info

Namespace: all

Notebook/server: any

Steps to reproduce

Steps to reproduce the behavior:

  1. Start OMS
  2. Run a model
  3. Change to the Model Runs Tabs
  4. Nothing appears, no errors.

Expected behaviour

The model run should appear there.

Cause

The Models in the UI are sourced from different files than the ones which are being ran on the workers. The difference is ../models/ vs ../models/bin/. The workers write into the sqlite files found in /bin and the UI is reading the sqlite files in ../models/ which shows an empty db. This was confirmed by exploring the db files as well, then adding data to the empty one under ../models/, which then appears.

Solution

1- clean up the bin directory, and all the models inside. 2- reduce complexity of the folder structure 3- UI and workers reference the same files 4- remove all other dirs and files from ../models/

Souheil-Yazji commented 9 months ago

Resolved.