Learn R Programming

taskqueue (version 0.2.0)

project_start: Start a Project

Description

Activates a project to allow workers to begin consuming tasks. Workers will only process tasks from started projects.

Usage

project_start(project, con = NULL)

Value

Invisibly returns NULL. Called for side effects (updating project status).

Arguments

project

Character string specifying the project name.

con

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

Details

Starting a project sets its status field to TRUE in the database. Workers check this status before requesting new tasks. If a project is stopped (status = FALSE), workers will terminate instead of processing tasks.

You must start a project before deploying workers with worker or worker_slurm.

See Also

project_stop, project_add, worker, worker_slurm

Examples

Run this code
if (FALSE) {
# Not run:
# Start project to enable workers
project_start("simulation_study")

# Deploy workers after starting
worker_slurm("simulation_study", "hpc", fun = my_function)
}

Run the code above in your browser using DataLab