Cache Path from environment variable TMP

Hi, I’m configuring CyroSpark with a SLURM cluster. However, in SLURM cluster, the cache folder (local scratch) may be dynamically created/cleaned for every job session. SLURM can overwrite the enviroment variable $TMP, $TMPDIR or $SLURM_TMPDIR to indicate the path of local scratch space. Is there a way CryoSpark worker can read such variables to use the cache folder dynamically for each SLURM jobs?

Hi, one way of going about it is to define the ssdpath in cluster_script.sh before {{ run_cmd }} when setting up the cluster lane.

e.g.

export CRYOSPARC_SSD_PATH="${SLURM_TMPDIR}"

Cheers,
Yang

Thank you for such quick response!!!