0

i have an AWS-SQS to receive message for the execute task on my celery worker which deployed on an EC2. One task takes around 5-6 min to execute. Actually i want to shutdown EC2 when there is no message in a SQS queue therefore i already setup cloudwatch + SNS + lambda to shutdown my EC2.

But issue is that sometimes it's shutdown EC2 when last task is running because cloudwatch trigger alarm to stop my EC2. so is there anyway to get status of my celery worker, whether it's idle or running ? thanks

Devang Hingu
  • 101
  • 2
  • It might be easier to simply build a fixed delay in the lambda before it shuts down. Also, if you can move your processing to lambda it may be more efficient. – Tim Apr 14 '22 at 22:09

0 Answers0