Skip to content

Commit

Permalink
update example python script
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerkuou committed Sep 20, 2024
1 parent c72cf02 commit 10fba3d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/scripts/script_reslc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This .py script is designed to be executed with a Dask SLURMCluster on a SLURM HPC.
It should be executed through a SLURM script by `sbatch` command.
Please do not run this script by "python xxx.py" on login node.
Please do not run this script by "python xxx.py" on a login node.
"""

import logging
Expand Down Expand Up @@ -71,10 +71,8 @@ def get_free_port():

# Option 2: Intiate a new SLURMCluster
# Uncomment the following part to give an exist Dask SLURMCluster
# ADDRESS = "tcp://XX.X.X.XX:YYYYY" # Manual input: Dask schedular address
# SOCKET = YYYYY # Manual input: port number. It should be the number after ":" of ADDRESS
ADDRESS = "tcp://10.0.0.10:44291"
SOCKET = 44291 # Manual input: port number. It should be the number after ":" of ADDRESS
ADDRESS = "tcp://XX.X.X.XX:12345" # Manual input: Dask schedular address
SOCKET = 12345 # Manual input: port number. It should be the number after ":" of ADDRESS
cluster = None # Keep this None, needed for an if statement
logger.info(f"Dask dashboard hosted at port: {SOCKET}.")
logger.info(
Expand Down

0 comments on commit 10fba3d

Please sign in to comment.