Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73679
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-06-27 16:27 -0700 |
| References | <mailman.9704.1399402109.18130.python-list@python.org> |
| Message-ID | <95320b71-37bb-4e53-a28c-ae9e87772f7f@googlegroups.com> (permalink) |
| Subject | Re: multiprocessing in a while loop? |
| From | Jesse Adam <jaahush@gmail.com> |
Could you post
a) what the output looks like now (sans the logging part)
b) what output do you expect
In any event, this routine does not look right to me:
def consume_queue(queue_name):
conn = boto.connect_sqs()
q = conn.get_queue(queue_name)
m = q.read()
while m is not None:
yield m
q.delete_message(m)
logger.debug('message deleted')
m = q.read()
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
multiprocessing in a while loop? Johan Llewellyn <johan.llewellyn@yahoo.com> - 2014-05-06 11:45 -0700 Re: multiprocessing in a while loop? Jesse Adam <jaahush@gmail.com> - 2014-06-27 16:27 -0700
csiph-web