Skip to content

Commit a20d400

Browse files
author
Alexey Tsitkin
committed
temporary commit
1 parent d034508 commit a20d400

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eb_sqs/worker/service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ def poll_messages(self, queue):
101101
def process_message(self, msg, worker):
102102
# type: (Message, Worker) -> None
103103
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)))
104106
sleep(10)
105-
print('Retry number {}'.format(msg.attributes.get('ApproximateReceiveCount', 0)))
107+
106108
# try:
107109
# worker.execute(msg.body)
108110
# logger.debug('[django-eb-sqs] Processed message {}'.format(msg.message_id))

0 commit comments

Comments
 (0)