ESMCI / ESMCI/cime

On no-batch systems, short-term archiver runs even if the run fails

Open
#4,386 2 comments 1 reaction 0 assignees View on GitHub
Low Priority ty: Bug
Dominant language
Python
Stars
174
Forks
225
Avg merge
1d 16h
Merged PRs (30d)
14

Description

@adrifoster pointed this out and I have reproduced it: On our macs, the short-term archiver runs even when the run fails. My guess is that this is due to this being a no-batch system and that the logic for stopping the short-term archiver from running doesn't work correctly in the absence of a batch system.

I reproduced this from CTSM (ctsm5.1.dev120, which uses cime6.0.100) by introducing an endrun call. The CaseStatus file shows:

```
---------------------------------------------------
2023-04-05 14:57:12: case.run starting
---------------------------------------------------
2023-04-05 14:57:13: model execution starting
---------------------------------------------------
2023-04-05 14:57:31: model execution error
ERROR: Command: 'mpirun -np 8 --tag-output /Users/sacks/projects/scratch/test_zipping_0405a/bld/cesm.exe >> cesm.log.$LID 2>&1 ' failed with error '' from dir '/Users/sacks/projects/scratch/test_zipping_0405a/run'
---------------------------------------------------
2023-04-05 14:57:31: case.run error
ERROR: RUN FAIL: Command 'mpirun -np 8 --tag-output /Users/sacks/projects/scratch/test_zipping_0405a/bld/cesm.exe >> cesm.log.$LID 2>&1 ' failed
See log file for details: /Users/sacks/projects/scratch/test_zipping_0405a/run/cesm.log.230405-145712
---------------------------------------------------
2023-04-05 14:57:31: st_archive starting
---------------------------------------------------
2023-04-05 14:57:31: st_archive success
---------------------------------------------------
2023-04-05 14:57:31: case.submit starting
---------------------------------------------------
2023-04-05 14:57:31: case.submit success
---------------------------------------------------
```

This is **not** high priority from our perspective, but we still wanted to open an issue documenting this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.