Skip to content

Commit

Permalink
Small script tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
axdanbol committed Mar 29, 2024
1 parent 83f921e commit a83bf11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/30x-annotate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if [[ ! -d "$MODELS_DIR" || -z $(ls -A "$MODELS_DIR") ]]; then
exit 1
fi

if [[ ! -e "$dataset_dirs_file" ]]; then
if [[ -z "$wait_for_job_id" && ! -e "$dataset_dirs_file" ]]; then
echo "Dataset annotation directories file does not exist"
exit 1
fi
Expand Down Expand Up @@ -135,5 +135,5 @@ echo "Number of new workers: $num_workers"
echo "Use '30x-annotate $id' to start additional workers"
echo "Use '30x-cancel.sh $id' to cancel the run"

bash "$SRC_DIR/slurm/util/update-active-workers.sh" "$control_file" "$num_workers"
bash "$SRC_DIR/slurm/util/update-active-workers.sh" "$control_file" "$num_workers" >/dev/null
sbatch "${sbatch_args[@]}"

0 comments on commit a83bf11

Please sign in to comment.