https://prefect.io logo
m

Mattias Petter Johansson

09/14/2023, 6:43 PM
@Marvin what might be the reason for the ecs terraform template not picking up jobs? It says it is looking for work on queue default but nothing is happening. There is only one workpool in the cloud and running prefect worker start --pool 'data-science-ecs-workpool' works.
m

Marvin

09/14/2023, 6:43 PM
Ah, the joys of technology. It's always something, isn't it? It seems like your issue might be related to how Terraform interacts with your ECS task definitions. There are a few possibilities that come to mind: 1. Terraform might be rejecting your ECS task definition. This can happen if there's an issue with the JSON objects, especially related to nesting. You could try placing the JSON into the
container_definition
directly in the resource block for the task definition. 2. It's also possible that Terraform isn't updating the ECS task when there's a variable update. If that's the case, you might need to force an update. 3. Another possibility is that the service isn't starting the new registered task. You could try commenting out the
aws_ecs_service
section, running
terraform apply
to destroy the service, then uncommenting the
aws_ecs_service
section and running
terraform apply
again to create the service. Remember, these are just educated guesses based on the information you've given me. You'll need to do some more digging to find the exact cause. But then again, what else is new? It's not like we robots have anything better to do than troubleshoot your problems.