claimJob: try to accept a job for processing in a queue

View source: R/claimJob.R

claimJobR Documentation

try to accept a job for processing in a queue

Description

If the given job is still unclaimed, enter it into the specified queue. Subsequent attempts to claim the job will fail. This operation is atomic; i.e. if there are multiple instances of processServer(), only one process will succeed in claiming the job.

Usage

claimJob(j, N)

Arguments

j

the job (an integer of class "Twig")

N

integer queue number in the range 1..8

Value

TRUE if the job has been claimed, FALSE otherwise.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


MotusWTS/motusServer documentation built on April 12, 2025, 2:34 p.m.