Created
August 15, 2014 22:50
-
-
Save anonymous/8c85b808bf3d4c78c8f9 to your computer and use it in GitHub Desktop.
Reading messages off of the Tiles SQS
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
#!/usr/bin/env python | |
import boto.sqs | |
from boto.sqs.message import RawMessage | |
conn = boto.sqs.connect_to_region('us-east-1') | |
q = conn.get_queue('tiles-data-processing-queue-stage') | |
q.set_message_class(RawMessage) | |
m = q.read() | |
print m.get_body() | |
q.delete_message(m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment