We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d034508 commit a20d400Copy full SHA for a20d400
eb_sqs/worker/service.py
@@ -101,8 +101,10 @@ def poll_messages(self, queue):
101
def process_message(self, msg, worker):
102
# type: (Message, Worker) -> None
103
logger.debug('[django-eb-sqs] Read message {}'.format(msg.message_id))
104
+ if msg.attributes:
105
+ print('Retry number {}'.format(msg.attributes.get('ApproximateReceiveCount', 0)))
106
sleep(10)
- print('Retry number {}'.format(msg.attributes.get('ApproximateReceiveCount', 0)))
107
+
108
# try:
109
# worker.execute(msg.body)
110
# logger.debug('[django-eb-sqs] Processed message {}'.format(msg.message_id))
0 commit comments