Created
April 21, 2016 15:01
-
-
Save marshyski/d05838b03ea6e4c17ac8fb4caeb7582b to your computer and use it in GitHub Desktop.
Just a simple SQS reader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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