Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Just a simple SQS reader
import boto.sqs
import time
conn = boto.sqs.connect_to_region("us-east-1")
q = conn.create_queue("myqueue")
while(True):
for m in q.get_messages():
print m.get_body()
q.delete_message(m)
time.sleep(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment