Sqs lambda consumer is invoking twice

I have configured an SQS queue attached to an lambda function but somehow the consumer is invoking twice even though I have written the logic of deleting the messages after processing in the consumer function.