Skip to content

Commit

Permalink
Merge "Finally ack consumed message"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jun 5, 2012
2 parents 2b9ff78 + d28f5bd commit be9bcd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nova/rpc/impl_kombu.py
Expand Up @@ -139,9 +139,10 @@ def _callback(raw_message):
message = self.channel.message_to_python(raw_message)
try:
callback(message.payload)
message.ack()
except Exception:
LOG.exception(_("Failed to process message... skipping it."))
finally:
message.ack()

self.queue.consume(*args, callback=_callback, **options)

Expand Down

0 comments on commit be9bcd8

Please sign in to comment.