Skip to content

Commit 49389c6

Browse files
committed
Add exports property to the config to add env vars to export to the job
1 parent 28d1478 commit 49389c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlflow_slurm/templates/sbatch_template.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% if config.account %}
77
#SBATCH --account={{ config.account }}
88
{% endif %}
9-
#SBATCH --export=MLFLOW_TRACKING_URI,MLFLOW_TRACKING_TOKEN,MLFLOW_TRACKING_USERNAME,MLFLOW_TRACKING_PASSWORD,MLFLOW_S3_ENDPOINT_URL,AWS_SECRET_ACCESS_KEY,AWS_ACCESS_KEY_ID
9+
#SBATCH --export=MLFLOW_TRACKING_URI,MLFLOW_TRACKING_TOKEN,MLFLOW_TRACKING_USERNAME,MLFLOW_TRACKING_PASSWORD,MLFLOW_S3_ENDPOINT_URL,AWS_SECRET_ACCESS_KEY,AWS_ACCESS_KEY_ID,{{ config.exports |join(',') }}
1010
{% if config.gpus_per_node %}
1111
#SBATCH --gpus-per-node={{ config.gpus_per_node }}
1212
{% endif %}
@@ -43,7 +43,7 @@ export {{ env }}
4343
export MLFLOW_RUN_ID={{ run_id }}
4444
echo "job is starting on `hostname`"
4545
{% if config.nodes %}
46-
srun --export=ALL /bin/bash -c '{{ command }}'
46+
srun --export=ALL /bin/bash -c '{{ command }}'
4747
{% else %}
4848
{{ command }}
4949
{% endif %}

0 commit comments

Comments
 (0)