Skip to content

Commit

Permalink
Update run_slurm.md. (#3635)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbobrovskyi authored Nov 25, 2024
1 parent afc4ec3 commit 2b001bc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/experimental/kjobctl/docs/run_slurm.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ First, you need to create a template for your job using the `JobTemplate` kind.
apiVersion: kjobctl.x-k8s.io/v1alpha1
kind: JobTemplate
metadata:
name: sample-slurm-template
name: slurm-template
namespace: default
template:
spec:
Expand All @@ -136,8 +136,8 @@ metadata:
spec:
supportedModes:
- name: Slurm
template: sample-slurm-template
requiredFlags: []
template: slurm-template
volumeBundles: ["slurm-volume-bundle"]
```

Then, save the file as `application_profile.yaml` and create the ApplicationProfile by running:
Expand Down Expand Up @@ -228,8 +228,6 @@ Below is an example of a simple batch script which wraps the Python script loade
echo "Now processing task ID: ${SLURM_ARRAY_TASK_ID}"
python /home/slurm/samples/sample_code.py
exit 0
```

To run this batch script, save it as `slurm-sample.sh` and execute:
Expand Down

0 comments on commit 2b001bc

Please sign in to comment.