If a regression test fails at the cleanup phase, then the cleanup phase is retried continuously.
This is a log snippet showing the cleanup phase failure:
debug: HelloWorldTestMPIOpenMP_c_static on dom:gpu using PrgEnv-cray_classic: caught builtins.FileNotFoundError: [Errno 2] No such file or directory: '/scratch/snx3000tds/jenscscs/regression/production/stage/2020-01-17_08-57-54/dom/gpu/PrgEnv-cray_classic/HelloWorldTestMPIOpenMP_c_static'
[2020-01-17T09:54:01] debug: reframe: removing task from running list: HelloWorldTestMPIOpenMP_c_static on dom:gpu using PrgEnv-cray_classic
[2020-01-17T09:54:01] debug: reframe: not in running tasks