Permalink
Browse files

Ability to warn about large task sizes

  • Loading branch information...
1 parent c623730 commit e791efac9487ae64208bb7ca13894ef8221d8df2 @jhs committed Feb 8, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 pool.js
View
@@ -92,6 +92,8 @@ function Pool (work_func) {
var drain_trigger = self.drain_on || 1;
if(total_task_size >= drain_trigger)
waiting_for_drain = true;
+ if(self.size_warning && total_task_size == self.size_warning)
+ self.log.warn(total_task_size + " tasks in " + self.label);
if(job_ids.length >= self.size) {
self.log.debug('No room for a new task');

0 comments on commit e791efa

Please sign in to comment.