I'm having issues where my SQS Messages are never deleted from the SQS Queue. They are only removed when the lifetime ends, which is 4 days.
So to summarize the app:
Send URL to SQS Queue to wait to be crawled
Send message to Elastic Beanstalk App that crawl the data and store it in database
The script seems to be working in the meaning that it does recieve the message, and it does crawl it successfully and store the data successfully in the database. The only issue is that the messages remain in the queue, stuck at "Message Available".
So if I for example load the queue with 800 messages. It will be stuck at ~800 messages for 4 days and then they will all be deleted instantly because of the lifetime value. It seems like a few messages gets deleted because the number changes slightly, but a large majority is never removed from the queue.
So question:
Isnt SQS Suppose to remove the message as soon as it has been send and recieved by the script?
Is there a manual way for me to in the script itself, delete the current message? From what I know the message is only send 1 way. From SQS -> App. So from what I know, I can not do SQS <-> App.
Any ideas?