On Mon, Nov 22, 2010 at 3:48 AM, Adnan <[email protected]> wrote: > Instead of fetching all jobs I am interested to fetch first 100 jobs/ > cronjob execution. is there anyway I can check whether there are 100 > jobs in a queue then I run the loop?
The reserve command gives only one job at a time. You can just stop after reserving 100 of them. The stats-tube command will tell you how many jobs are ready to be reserved, but if you have more than one worker, this number may change between the stats command and a subsequent reserve command. kr -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/beanstalk-talk?hl=en.
