def main(): logger.info('Pocessor started') consume_queue('IN', process)
def main(): logger.info("Letter collector started") consume_queue("LETTERS", lambda x: process_letter(x[0], x[1]))
def main(): logger.info( 'SMTP delivery started' ) consume_queue('OUT', sendMail)