spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

Container io.awspring.cloud.sqs.sqsListenerEndpointContainer#0 stopped.

Open jangolano opened this issue 6 months ago • 1 comments

Type: Bug

Component: SQS

Describe the bug Container io.awspring.cloud.sqs.sqsListenerEndpointContainer#0 stopped. It then shows memory data in the logs. This seems to happen randomly.

I know the example below doesn't give a lot of information. The code is running in a docker container within ECS/Fargate.

Sample


    @SqsListener("generate-report-queue")
    fun onReceiveMessage(message: String) {
        logger.info("Received the following message to generate a report: $message")
        if(message.uppercase()=="CURRENT"){
            CurrentReportGenerator(dynamoDbUtils, slackUtils, hrChannel).generate()
        }
        else if(StringUtils.isUserRequest(message)){
            UserReportGenerator(dynamoDbUtils, slackUtils, hrChannel, message).generate()
        }
    }

jangolano avatar Aug 17 '24 15:08 jangolano