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

Description Usage Arguments Value Author(s)

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/motus-R-package documentation built on May 18, 2019, 7:03 p.m.