Constructs a scancel command targeting either an entire SLURM job or
specific array task indices (<job_id>_<chunk_id>).
Examples
build_scancel_command("482910")
#> [1] "scancel 482910"
build_scancel_command("482910", chunks = c(2, 5))
#> [1] "scancel 482910_2 482910_5"
