Skip to content

Commit

Permalink
Add option to not print Jobs in HOLD state
Browse files Browse the repository at this point in the history
  • Loading branch information
michelwi committed Jul 30, 2023
1 parent 155c9f0 commit 3708179
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sisyphus/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ def file_caching(path):
PRINT_ERROR_TASKS = 1
#: Print that many last lines of error state log file
PRINT_ERROR_LINES = 40
#: Print message for held jobs
PRINT_HOLD = True

#: Which command should be called to start sisyphus, can be used to replace the python binary
SIS_COMMAND = [sys.executable, sys.argv[0]]
Expand Down
3 changes: 2 additions & 1 deletion sisyphus/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,11 @@ def print_job_state(state, job, info_string, verbose=False):
elif state in [gs.STATE_INTERRUPTED_RESUMABLE, gs.STATE_UNKNOWN]:
logging.warning(info_string)
elif state in [gs.STATE_QUEUE,
gs.STATE_HOLD,
gs.STATE_RUNNING,
gs.STATE_RUNNABLE]:
logging.info(info_string)
elif state == gs.STATE_HOLD and gs.PRINT_HOLD:
logging.info(info_string)
elif verbose:
logging.info(info_string)
else:
Expand Down

0 comments on commit 3708179

Please sign in to comment.