This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients ncoghlan
Date 2012-04-04.02:23:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333506219.01.0.716621518629.issue14487@psf.upfronthosting.co.za>
In-reply-to
Content
The task management API in the Queue module doesn't let you check to see if there are any pending tasks still being processed.

A pending() query API (analagous to empty() and full()) would resolve that problem.

The use case is for a process that terminates when all current jobs are complete, but should immediately start processing any *new* jobs that arrive while waiting for the old ones. Using the current Queue.join() method would fail the second requirement (since the blocking calls means that no new jobs could be added while waiting for the old ones to finish).
History
Date User Action Args
2012-04-04 02:23:39ncoghlansetrecipients: + ncoghlan
2012-04-04 02:23:39ncoghlansetmessageid: <1333506219.01.0.716621518629.issue14487@psf.upfronthosting.co.za>
2012-04-04 02:23:36ncoghlanlinkissue14487 messages
2012-04-04 02:23:36ncoghlancreate