Learn R Programming

taskqueue (version 0.2.0)

project_stop: Stop a Project

Description

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.

See Also

project_start, project_reset, task_reset

Examples

Run this code
if (FALSE) {
# Not run:
# Stop project and cancel all jobs
project_stop("simulation_study")

# Reset tasks that were in progress
task_reset("simulation_study", status = "working")
}

Run the code above in your browser using DataLab