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

Description Usage Arguments Value Author(s)

View source: R/claimJob.R

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

1
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


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.