Skip to content

Instantly share code, notes, and snippets.

@marshyski
Created April 21, 2016 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshyski/d05838b03ea6e4c17ac8fb4caeb7582b to your computer and use it in GitHub Desktop.
Save marshyski/d05838b03ea6e4c17ac8fb4caeb7582b to your computer and use it in GitHub Desktop.
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