Learn R Programming

taskqueue (version 0.2.0)

task_clean: Remove All Tasks from a Project

Description

Deletes all tasks from a project's task table. This is a destructive operation that removes all task data and history.

Usage

task_clean(project, con = NULL)

Value

Invisibly returns NULL. Called for side effects (truncating task table).

Arguments

project

Character string specifying the project name.

con

An optional database connection. If NULL, a new connection is created and closed automatically.

Details

Uses SQL TRUNCATE to efficiently remove all rows from the task table. This is faster than DELETE but cannot be rolled back.

Warning: All task history, including completion status and runtime information, will be permanently lost.

This function is automatically called by task_add when clean = TRUE.

See Also

task_add, task_reset

Examples

Run this code
if (FALSE) {
# Not run:
# Remove all tasks
task_clean("simulation_study")

# Add new tasks
task_add("simulation_study", num = 200)
}

Run the code above in your browser using DataLab