Learn R Programming

taskqueue (version 0.2.0)

resource_get: Get Information for a Specific Resource

Description

Retrieves detailed information about a single computing resource by name.

Usage

resource_get(resource, con = NULL)

Value

A single-row data frame containing resource information. Stops with an error if the resource is not found.

Arguments

resource

Character string specifying the resource name.

con

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

Details

The returned data frame contains all resource configuration details needed for worker deployment, including connection information and resource limits.

See Also

resource_add, resource_list

Examples

Run this code
if (FALSE) {
# Not run:
# Get specific resource
hpc_info <- resource_get("hpc")
print(hpc_info$workers)  # Maximum workers
print(hpc_info$log_folder)  # Log directory
}

Run the code above in your browser using DataLab