metrumresearchgroup / bbr

R interface for model and project management
https://metrumresearchgroup.github.io/bbr/
Other
23 stars 2 forks source link

wait_from_nonmem() helper #479

Closed seth127 closed 2 years ago

seth127 commented 2 years ago

Summary

There are situations where we want to monitor whether a NONMEM run has completed. Note that we don't care (in these situations) whether it finished successfully in any sense, just whether it is still running. This is not trivial because these models are often submitted to run on worker nodes in a grid, so we can't just check for the process ID.

Notes

Initial idea is to check the .lst file for "Stop Time". This seems to work for most cases, but there are some things to consider.

Requirements

barrettk commented 2 years ago

Stories:

MGMT-S019:
  name: wait_for_nonmem
  description: As a user, I want to be able to freeze my R console while a model is executing on the grid or otherwise
  ProductRisk: Medium
  Requirements:
     - MGMT-R010

Requirements:

MGMT-R010:
  description: wait_for_nonmem() will freeze the console until a stop time is found or the allotted time is reached
  tests: 
     - BBR-UTL-012
     - BBR-UTL-013