spring-cloud-aws
spring-cloud-aws copied to clipboard
Container io.awspring.cloud.sqs.sqsListenerEndpointContainer#0 stopped.
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()
}
}