Learn R Programming

taskqueue (version 0.2.0)

project_resource_log_delete: Delete Log Files for a Project Resource

Description

Removes all log files from the resource's log folder for a specific project. Log files include SLURM output/error files and worker scripts.

Usage

project_resource_log_delete(project, resource, con = NULL)

Value

Invisibly returns NULL. Called for side effects (deleting log files).

Arguments

project

Character string specifying the project name.

resource

Character string specifying the resource name.

con

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

Details

Deletes all files matching the pattern <project>-<resource>* from the log folder specified in the resource configuration.

Currently only supports SLURM resources.

This function is automatically called by project_reset when log_clean = TRUE.

See Also

project_reset, resource_add

Examples

Run this code
if (FALSE) {
# Not run:
# Delete logs for specific project-resource
project_resource_log_delete("simulation_study", "hpc")
}

Run the code above in your browser using DataLab