Skip to content

Commit ef65d5f

Browse files
committed
Improve workflow.sh
1 parent 431a3f2 commit ef65d5f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/examples/slurm-perpetual/workflow.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ echo "Starting background process to monitor wall time."
3434
BGPID=$!
3535
trap "kill $BGPID" EXIT
3636

37-
# Start StepUp with 5 workers.
38-
# This means that at most 5 jobs will be submitted concurrently.
37+
NWORKER=5
38+
echo "Starting stepup with a maximum of ${NWORKER} concurrent jobs."
39+
stepup boot -n ${NWORKER}
40+
# This means that at most ${NWORKER} jobs will be submitted concurrently.
3941
# You can adjust the number of workers based on your needs.
4042
# In fact, because this example is simple, a single worker would be sufficient.
41-
# Note that the number of workers is unrelated
42-
# to the single core used by this workflow script.
43-
echo "Starting stepup with a maximum of 5 concurrent jobs."
44-
stepup boot -n 5
43+
# Note that the number of workers is unrelated to the single core used by this workflow script.
4544

4645
# Use the temporary file to determine if the workflow script must be resubmitted.
4746
echo "Checking if stepup was forcibly stopped."

0 commit comments

Comments
 (0)