Example #1
0
 def _process_queue(self):
     while True:
         work_item = operations.retrieve_work_item(max_wait_time = 5)
         if work_item:
             mail_parser.handle_work_item(self.processor, work_item)
             operations.close_work_item(work_item, True)
         else:
             break
 def _process_queue(self):
     while True:
         work_item = operations.retrieve_work_item(max_wait_time=3)
         if work_item:
             mail_parser.handle_work_item(self.processor, work_item)
             operations.close_work_item(work_item, True)
         else:
             logging.info('no more work items')
             break
Example #3
0
 def _process_queue(self):
     while True:
         work_item = operations.retrieve_work_item(max_wait_time = 3)
         if work_item:
             mail_parser.handle_work_item(self.processor, work_item)
             operations.close_work_item(work_item, True)
         else:
             logging.info('no more work items')
             break