Closed seth127 closed 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
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.kill -9 <pid>
qdel
Requirements
check_nonmem_finished()
(also exported) to check a single model one-off