Deactivates a project and cancels all running SLURM jobs associated with it.
Workers will terminate after completing their current task.
Usage
project_stop(project)
Value
Invisibly returns NULL. Called for side effects (stopping project and jobs).
Arguments
project
Character string specifying the project name.
Details
This function:
Sets the project status to FALSE, preventing workers from taking new tasks
Cancels all SLURM jobs associated with this project using scancel
Resets the job list for all project resources
Active workers will complete their current task before shutting down. Tasks
in working status when the project stops should be reset to idle
using project_reset or task_reset.
if (FALSE) {
# Not run:# Stop project and cancel all jobsproject_stop("simulation_study")
# Reset tasks that were in progresstask_reset("simulation_study", status = "working")
}