File tree 2 files changed +9
-2
lines changed
var/ramble/repos/builtin/workflow_managers/slurm
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ def set_application(self, app_inst):
47
47
48
48
def get_status (self , workspace ):
49
49
"""Return status of a given job"""
50
- return None
50
+ raise NotImplementedError (
51
+ f"The workflow manager { self .name } does not support `get_status`"
52
+ )
51
53
52
54
def conditional_expand (self , templates ):
53
55
"""Return a (potentially empty) list of expanded strings
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def __init__(self, file_path):
87
87
name = "slurm_execute_template_path" ,
88
88
default = "slurm_experiment_sbatch.tpl" ,
89
89
description = "Path to the custom template for generating the slurm sbatch job script. "
90
- "If a relative path is given , it is searched under the workflow manager's source directory. "
90
+ "For a relative path, it is searched under the workflow manager's source directory. "
91
91
"The path can contain workspace path variables such as $workspace_config." ,
92
92
)
93
93
@@ -207,6 +207,11 @@ def get_status(self, workspace):
207
207
wm_status = _STATUS_MAP .get (wm_status_raw )
208
208
if wm_status is not None and hasattr (experiment_status , wm_status ):
209
209
status = getattr (experiment_status , wm_status )
210
+ if status == experiment_status .UNRESOLVED :
211
+ logger .warn (
212
+ f"The slurm workflow manager failed to resolve the status of job { job_id } . "
213
+ "Enable debug mode (`ramble -d`) for more detailed error messages."
214
+ )
210
215
return status
211
216
212
217
You can’t perform that action at this time.
0 commit comments