Skip to content

Commit

Permalink
do not allow beeflow to be run on a compute node (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
kchilleri authored Oct 10, 2024
1 parent b48c061 commit 018e351
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions beeflow/client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ def load_check_charliecloud():
def check_dependencies():
"""Check for various dependencies in the environment."""
print('Checking dependencies...')
# Check if running on compute node under Slurm scheduler
if os.environ.get('SLURM_JOB_NODELIST') is not None:
warn('Slurm job node detected! Beeflow should not be run on a compute node.')
warn(f'SLURM_JOB_NODELIST = {os.environ.get("SLURM_JOB_NODELIST")}')
sys.exit(1)
# Check for Charliecloud and its version
load_check_charliecloud()
# Check for the flux API
Expand Down

0 comments on commit 018e351

Please sign in to comment.