On Mon, Nov 5, 2012 at 12:17 PM, David Nicol <[email protected]> wrote:
> $Q{$_}{READY} or next;
> mkdir "QueueDir/$_/GOTIT", 0777 or next; # this will
> succeed once
>
sorry, it's probably better to move the work unit into a per-worker queue
directory,
which should also be atomic.
rename "QueueDir/$_", "WorkerQs/$$/$_" or next;
...
these things are easy to do, and easy to do reusably, which is why there
are so many
available.
_______________________________________________
kc mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/kc