Closed cbraynor closed 9 years ago
@drtriumph I think the race condition is still there for when no job is defined, but it seems fixed for when there is a job defined.
To repro:
_state
variable so they should get picked up once the queue worker turns on_state
variable, yet the queue worker will not attempt to pick this job up even though it is readyI'm looking into why it's still broken. Let me know if you can't repro it.
@mattse I can't seem to reproduce the error. I did do some linting and some minor variable refactoring that included a name change for the processTimeout
function that had to become resetItem
because it wasn't just used in timeouts anymore - with a corresponding log change. I also fixed a small issue where it wasn't reporting the completion of a job that was removed when it finished
Oh, and I removed the need / check for an authenticated reference - it was a legacy from when I used the UID of the access token to specify the job ID
I was about to bring up "removal of required authenticated reference," but you already did it :) Just another "reduce friction, get running ASAP" point.
LGTM, merging
Attempting to remove the race condition whereby a single job can claim more than one item while the transactions are being processed
@mattse can we test this with your example, and if it works merge it in